UserScript class
- Available extensions
- Annotations
-
- @JsonSerializable.new(explicitToJson: true, checked: true)
Constructors
-
UserScript({Set<
String> ? allowedOriginRules, ContentWorld? contentWorld, bool? forMainFrameOnly, String? groupName, required UserScriptInjectionTime injectionTime, required String source}) -
UserScript.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
allowedOriginRules
→ Set<
String> -
final
- contentWorld → ContentWorld?
-
final
- forMainFrameOnly → bool
-
final
- groupName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- injectionTime → UserScriptInjectionTime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
final
Methods
-
copyWith(
{Set< String> ? allowedOriginRules, ContentWorld? contentWorld, bool? forMainFrameOnly, String? groupName, UserScriptInjectionTime? injectionTime, String? source}) → UserScript -
copyWithUserScript(
{Set< String> ? allowedOriginRules, ContentWorld? contentWorld, bool? forMainFrameOnly, String? groupName, UserScriptInjectionTime? injectionTime, String? source}) → UserScript -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patchWithUserScript(
[UserScriptPatch? patchInput]) → UserScript -
toJson(
) → Map< String, dynamic> -
Available on UserScript, provided by the UserScriptSerialization extension
-
toJsonLean(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override