saveCookies method

  1. @override
Future<void> saveCookies({
  1. required String url,
  2. required List<Cookie> cookies,
})
override

Implementation

@override
Future<void> saveCookies({
  required String url,
  required List<Cookie> cookies,
}) {
  return methodChannel.invokeMethod<void>(
    'saveCookies',
    <String, dynamic>{
      'url': url,
      'cookies': cookies.map((Cookie cookie) {
        return cookie.toString();
      }).toList(),
    },
  );
}