set method
Sets a cookie with the given cookie data; may overwrite equivalent cookies
if they exist.
details
Details about the cookie being set.
Implementation
Future<Cookie?> set(SetDetails details) async {
var $res = await promiseToFuture<$js.Cookie?>(
$js.chrome.cookies.set(details.toJS));
return $res?.let(Cookie.fromJS);
}