WebViewUserScript class
A script registered for injection into future documents.
- Annotations
Constructors
- WebViewUserScript({required String source, WebViewUserScriptInjectionTime injectionTime = WebViewUserScriptInjectionTime.documentStart, bool forMainFrameOnly = true})
-
Creates a user script.
const
Properties
- forMainFrameOnly → bool
-
Whether the script is restricted to the main frame.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- injectionTime → WebViewUserScriptInjectionTime
-
The lifecycle point at which the script is injected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
The JavaScript source to inject.
final
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