InjectDetails class

Constructors

InjectDetails({String? code, String? file, bool? allFrames, int? frameId, bool? matchAboutBlank, RunAt? runAt, CSSOrigin? cssOrigin})
InjectDetails.fromJS(InjectDetails _wrapped)

Properties

allFrames bool?
If allFrames is true, implies that the JavaScript or CSS should be injected into all frames of current page. By default, it's false and is only injected into the top frame. If true and frameId is set, then the code is inserted in the selected frame and all of its child frames.
getter/setter pair
code String?
JavaScript or CSS code to inject.
getter/setter pair
cssOrigin CSSOrigin?
The origin of the CSS to inject. This may only be specified for CSS, not JavaScript. Defaults to "author".
getter/setter pair
file String?
JavaScript or CSS file to inject.
getter/setter pair
frameId int?
The frame where the script or CSS should be injected. Defaults to 0 (the top-level frame).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
matchAboutBlank bool?
If matchAboutBlank is true, then the code is also injected in about:blank and about:srcdoc frames if your extension has access to its parent document. Code cannot be inserted in top-level about:-frames. By default it is false.
getter/setter pair
runAt RunAt?
The soonest that the JavaScript or CSS will be injected into the tab. Defaults to "document_idle".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS → InjectDetails
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited