getAllCookies method

  1. @Deprecated('Use Storage.getCookies instead')
Future<List<Cookie>> getAllCookies()

Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the cookies field. Deprecated. Use Storage.getCookies instead. Returns: Array of cookie objects.

Implementation

@Deprecated('Use Storage.getCookies instead')
Future<List<Cookie>> getAllCookies() async {
  var result = await _client.send('Network.getAllCookies');
  return (result['cookies'] as List)
      .map((e) => Cookie.fromJson(e as Map<String, dynamic>))
      .toList();
}