Skip to content

Commit 8add0d6

Browse files
committed
Change return type of getCookies() to Map<String, String>
1 parent bad4b0a commit 8add0d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/base.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ class FlutterWebviewPlugin {
141141
_instance = null;
142142
}
143143

144-
Future<Map<String, dynamic>> getCookies() async {
144+
Future<Map<String, String>> getCookies() async {
145145
final cookiesString = await evalJavascript("document.cookie");
146-
final cookies = <String, dynamic>{};
146+
final cookies = <String, String>{};
147147

148148
if (cookiesString?.isNotEmpty == true) {
149149
cookiesString.split(";").forEach((String cookie) {

0 commit comments

Comments
 (0)