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. |Returns|: Returns a Promise which resolves once scripts have been unregistered or rejects if an error has occurred.
Implementation
Future<void> unregisterContentScripts(ContentScriptFilter? filter) async {
await $js.chrome.scripting.unregisterContentScripts(filter?.toJS).toDart;
}