getEnabledRulesets method

Future<List<String>> getEnabledRulesets()

Returns the ids for the current set of enabled static rulesets. |callback|: Called 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();
}