InjectionTarget constructor

InjectionTarget({
  1. bool? allFrames,
  2. List<String>? documentIds,
  3. List<int>? frameIds,
  4. required int tabId,
})

Implementation

InjectionTarget({
  /// Whether the script should inject into all frames within the tab.
  /// Defaults
  /// to false. This must not be true if `frameIds` is specified.
  bool? allFrames,

  /// The IDs of specific documentIds to inject into. This must not be set if
  /// `frameIds` is set.
  List<String>? documentIds,

  /// The IDs of specific frames to inject into.
  List<int>? frameIds,

  /// The ID of the tab into which to inject.
  required int tabId,
}) : _wrapped = $js.InjectionTarget(
        allFrames: allFrames,
        documentIds: documentIds?.toJSArray((e) => e.toJS),
        frameIds: frameIds?.toJSArray((e) => e.toJS),
        tabId: tabId,
      );