getCookies method
Returns all browser cookies.
browserContextId
Browser context to use when called on the browser endpoint.
Returns: Array of cookie objects.
Implementation
Future<List<network.Cookie>> getCookies({
browser.BrowserContextID? browserContextId,
}) async {
var result = await _client.send('Storage.getCookies', {
if (browserContextId != null) 'browserContextId': browserContextId,
});
return (result['cookies'] as List)
.map((e) => network.Cookie.fromJson(e as Map<String, dynamic>))
.toList();
}