UserScriptInjection class

Constructors

UserScriptInjection({bool? injectImmediately, required List<ScriptSource> js, required InjectionTarget target, ExecutionWorld? world, String? worldId})
UserScriptInjection.fromJS(UserScriptInjection _wrapped)

Properties

hashCode → int
The hash code for this object.
no setterinherited
injectImmediately ↔ bool?
Whether the injection should be triggered in the target as soon as possible. Note that this is not a guarantee that injection will occur prior to page load, as the page may have already loaded by the time the script reaches the target.
getter/setter pair
js ↔ List<ScriptSource>
The list of ScriptSource objects defining sources of scripts to be injected into the target.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target ↔ InjectionTarget
Details specifying the target into which to inject the script.
getter/setter pair
toJS → UserScriptInjection
no setter
world ↔ ExecutionWorld?
The JavaScript "world" to run the script in. The default is USER_SCRIPT.
getter/setter pair
worldId ↔ String?
Specifies the user script world ID to execute in. If omitted, the script will execute in the default user script world. Only valid if world is omitted or is USER_SCRIPT. Values with leading underscores (_) are reserved.
getter/setter pair

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