getAll method
Retrieves all cookies from a single cookie store that match the given
information. The cookies returned will be sorted, with those with the
longest path first. If multiple cookies have the same path length, those
with the earliest creation time will be first. This method only retrieves
cookies for domains that the extension has host permissions to.
details
Information to filter the cookies being retrieved.
Implementation
Future<List<Cookie>> getAll(GetAllDetails details) async {
var $res =
await promiseToFuture<JSArray>($js.chrome.cookies.getAll(details.toJS));
return $res.toDart.cast<$js.Cookie>().map((e) => Cookie.fromJS(e)).toList();
}