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.


ContentBlockerAction.cssDisplayNone(String selector)


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.cssDisplayNone, 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


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


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

Static Methods

fromMap(Map<String, dynamic> map) ContentBlockerAction