getEnabledRulesets method
Returns the ids for the current set of enabled static rulesets. |Returns|: Promise that resolves with a list of ids, where each id corresponds to an enabled static Ruleset.
Implementation
Future<List<String>> getEnabledRulesets() async {
var $res =
await $js.chrome.declarativeNetRequest.getEnabledRulesets().toDart;
return $res.toDart.cast<JSString>().map((e) => e.toDart).toList();
}