updateStaticRules method
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.
|callback|: Called once the update is complete. In case of an error,
runtime.lastError
will be set and no change will be made to the
enabled static rules.
Implementation
Future<void> updateStaticRules(UpdateStaticRulesOptions options) async {
await promiseToFuture<void>(
$js.chrome.declarativeNetRequest.updateStaticRules(options.toJS));
}