unregisterContentScripts method
Unregisters content scripts for this extension. |filter|: If specified, only unregisters dynamic content scripts which match the filter. Otherwise, all of the extension's dynamic content scripts are unregistered. |callback|: A callback to be invoked once scripts have been unregistered or if an error has occurred.
Implementation
Future<void> unregisterContentScripts(ContentScriptFilter? filter) async {
await promiseToFuture<void>(
$js.chrome.scripting.unregisterContentScripts(filter?.toJS));
}