diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index a6a1075..802443c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -1,5 +1,15 @@
+
+
+
+
+
+
+
+
+
+
@@ -22,24 +32,144 @@
-
-
-
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+ 1712032984672
+
+
+
+ 1712032984672
+
+
+
+ 1712033684730
+
+
+
+ 1712033684730
+
+
+
+ 1712033915076
+
+
+
+ 1712033915076
+
+
+
+ 1712034831650
+
+
+
+ 1712034831650
+
+
+
+ 1712036156380
+
+
+
+ 1712036156381
+
+
+
+ 1712036709821
+
+
+
+ 1712036709821
+
+
+
+ 1712037345074
+
+
+
+ 1712037345074
+
+
+
+ 1712038254499
+
+
+
+ 1712038254499
+
+
+
+ 1712038492030
+
+
+
+ 1712038492030
+
+
+
+ 1712040024402
+
+
+
+ 1712040024402
+
+
+
+ 1712041636822
+
+
+
+ 1712041636822
+
+
+
+ 1712043126356
+
+
+
+ 1712043126356
+
+
+
+ 1712043149932
+
+
+
+ 1712043149932
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/lib/src/webview.dart b/lib/src/webview.dart
index 4b54810..ac86647 100644
--- a/lib/src/webview.dart
+++ b/lib/src/webview.dart
@@ -7,8 +7,8 @@ import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
-import 'enums.dart';
import 'cursor.dart';
+import 'enums.dart';
class HistoryChanged {
final bool canGoBack;
@@ -397,6 +397,47 @@ class WebviewController extends ValueNotifier {
return _methodChannel.invokeMethod('clearCookies');
}
+ /// Get browser cookies as a list of maps, each representing a cookie.
+ Future>> getCookies(String url) async {
+ if (_isDisposed) {
+ return [];
+ }
+ assert(value.isInitialized);
+ final dynamic result = await _methodChannel.invokeMethod('getCookies', url);
+ if (result is List) {
+ return result.map