ContentBlockerActionType class Null safety

Class that represents the kind of action that can be used with a ContentBlockerTrigger.


hashCode int
The hash code for this object.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() String
A string representation of this object.
toValue() String


operator ==(Object value) bool
The equality operator.

Static Properties

values Set<ContentBlockerActionType>

Static Methods

fromValue(String? value) ContentBlockerActionType?


BLOCK → const ContentBlockerActionType
Stops loading of the resource. If the resource was cached, the cache is ignored.
const ContentBlockerActionType._internal('block')
CSS_DISPLAY_NONE → const ContentBlockerActionType
Hides elements of the page based on a CSS selector. A selector field contains the selector list. Any matching element has its display property set to none, which hides it.
const ContentBlockerActionType._internal('css-display-none')
MAKE_HTTPS → const ContentBlockerActionType
Changes a URL from http to https. URLs with a specified (nondefault) port and links using other protocols are unaffected.
const ContentBlockerActionType._internal('make-https')