ContentBlockerAction class Null safety

Action associated to the trigger. The action tells to the WebView what to do when the trigger is matched. When a trigger matches a resource, the browser queues the associated action for execution. The WebView evaluates all the triggers, it executes the actions in order. When a domain matches a trigger, all rules after the triggered rule that specify the same action are skipped. Group the rules with similar actions together to improve performance.

Constructors

ContentBlockerAction({required ContentBlockerActionType type, String? selector})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selector String?
If the action type is ContentBlockerActionType.CSS_DISPLAY_NONE, then also the selector property is required, otherwise it is ignored. It specify a string that defines a selector list. Use CSS identifiers as the individual selector values, separated by commas.
read / write
type ContentBlockerActionType
Type of the action.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Methods

fromMap(Map<String, dynamic> map) ContentBlockerAction