getCookies method
Gets all cookies for the current page
Implementation
Future<List<Map<String, String>>> getCookies(String url) async {
final uri = WebUri(url);
final cookies = await CookieManager.instance().getCookies(url: uri);
return cookies.map((webViewCookie) {
return <String, String>{
'name': webViewCookie.name,
'value': webViewCookie.value,
'domain': webViewCookie.domain ?? '',
'path': webViewCookie.path ?? '/',
};
}).toList();
}