RequestContentScript constructor
RequestContentScript({})
Implementation
RequestContentScript({
/// Names of CSS files to be injected as a part of the content script.
List<String>? css,
/// Names of JavaScript files to be injected as a part of the content
/// script.
List<String>? js,
/// Whether the content script runs in all frames of the matching page, or
/// in only the top frame. Default is `false`.
bool? allFrames,
/// Whether to insert the content script on `about:blank` and
/// `about:srcdoc`. Default is `false`.
bool? matchAboutBlank,
required RequestContentScriptInstanceType instanceType,
}) : _wrapped = $js.RequestContentScript(
css: css?.toJSArray((e) => e),
js: js?.toJSArray((e) => e),
allFrames: allFrames,
matchAboutBlank: matchAboutBlank,
instanceType: instanceType.toJS,
);