RequestContentScript constructor

RequestContentScript({
  1. List<String>? css,
  2. List<String>? js,
  3. bool? allFrames,
  4. bool? matchAboutBlank,
  5. required RequestContentScriptInstanceType instanceType,
})

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,
      );