getAvailableStaticRuleCount method

Future<int> getAvailableStaticRuleCount()

Returns the number of static rules an extension can enable before the global static rule limit is reached.

Implementation

Future<int> getAvailableStaticRuleCount() async {
  var $res = await $js.chrome.declarativeNetRequest
      .getAvailableStaticRuleCount()
      .toDart;
  return $res.toDartInt;
}