getRegisteredContentScripts method
Returns all dynamically registered content scripts for this extension that match the given filter. |filter|: An object to filter the extension's dynamically registered scripts.
Implementation
Future<List<RegisteredContentScript>> getRegisteredContentScripts(
ContentScriptFilter? filter) async {
var $res = await promiseToFuture<JSArray>(
$js.chrome.scripting.getRegisteredContentScripts(filter?.toJS));
return $res.toDart
.cast<$js.RegisteredContentScript>()
.map((e) => RegisteredContentScript.fromJS(e))
.toList();
}