getSessionRules method
Returns the current set of session scoped rules for the extension.
Callers can optionally filter the list of fetched rules by specifying a
filter
.
|filter|: An object to filter the list of fetched rules.
|callback|: Called with the set of session scoped rules.
Implementation
Future<List<Rule>> getSessionRules(GetRulesFilter? filter) async {
var $res = await promiseToFuture<JSArray>(
$js.chrome.declarativeNetRequest.getSessionRules(filter?.toJS));
return $res.toDart.cast<$js.Rule>().map((e) => Rule.fromJS(e)).toList();
}