setCookie method
Sets a cookie for all WebView
instances.
Implementation
@override
Future<void> setCookie(WebViewCookie cookie) async {
if (!_isValidPath(cookie.path)) {
throw ArgumentError(
'The path property for the provided cookie was not given a legal value.');
}
await (await LinuxWebViewPlugin.channel)
.invokeMethod<void>('setCookie', <String, dynamic>{
'domain': cookie.domain,
'path': cookie.path,
'name': cookie.name,
'value': cookie.value,
});
}