updateStaticRules method

Future<void> updateStaticRules(
  1. UpdateStaticRulesOptions options
)

Disables and enables individual static rules in a Ruleset. Changes to rules belonging to a disabled Ruleset will take effect the next time that it becomes enabled. |Returns|: Promise that resolves when the update is complete. In case of an error, the promise will be rejected and no change will be made to the enabled static rules.

Implementation

Future<void> updateStaticRules(UpdateStaticRulesOptions options) async {
  await $js.chrome.declarativeNetRequest
      .updateStaticRules(options.toJS)
      .toDart;
}