getDisabledRuleIds method

Future<List<int>> getDisabledRuleIds(
  1. GetDisabledRuleIdsOptions options
)

Returns the list of static rules in the given Ruleset that are currently disabled. |options|: Specifies the ruleset to query. |Returns|: Promise that resolves with a list of ids that correspond to the disabled rules in that ruleset.

Implementation

Future<List<int>> getDisabledRuleIds(
    GetDisabledRuleIdsOptions options) async {
  var $res = await $js.chrome.declarativeNetRequest
      .getDisabledRuleIds(options.toJS)
      .toDart;
  return $res.toDart.cast<JSNumber>().map((e) => e.toDartInt).toList();
}