DeleteInjectionDetails constructor

DeleteInjectionDetails({
  1. String? code,
  2. String? file,
  3. bool? allFrames,
  4. int? frameId,
  5. bool? matchAboutBlank,
  6. CSSOrigin? cssOrigin,
})

Implementation

DeleteInjectionDetails({
  /// CSS code to remove.
  String? code,

  /// CSS file to remove.
  String? file,

  /// If allFrames is `true`, implies that the CSS should be removed from all
  /// frames of current page. By default, it's `false` and is only removed
  /// from the top frame. If `true` and `frameId` is set, then the code is
  /// removed from the selected frame and all of its child frames.
  bool? allFrames,

  /// The [frame](webNavigation#frame_ids) from where the CSS should be
  /// removed. Defaults to 0 (the top-level frame).
  int? frameId,

  /// If matchAboutBlank is true, then the code is also removed from
  /// about:blank and about:srcdoc frames if your extension has access to its
  /// parent document. By default it is `false`.
  bool? matchAboutBlank,

  /// The [origin](https://www.w3.org/TR/css3-cascade/#cascading-origins) of
  /// the CSS to remove. Defaults to `"author"`.
  CSSOrigin? cssOrigin,
}) : _wrapped = $js.DeleteInjectionDetails(
        code: code,
        file: file,
        allFrames: allFrames,
        frameId: frameId,
        matchAboutBlank: matchAboutBlank,
        cssOrigin: cssOrigin?.toJS,
      );