loadCookies method

  1. @override
Future<List<Cookie>?> loadCookies({
  1. required String url,
})
override

Implementation

@override
Future<List<Cookie>?> loadCookies({
  required String url,
}) async {
  final List<String>? cookies = await methodChannel.invokeListMethod<String>(
    'loadCookies',
    <String, dynamic>{
      'url': url,
    },
  );
  return cookies?.map((String cookie) {
    return Cookie.fromSetCookieValue(cookie);
  }).toList();
}