PostHogTextMask class sealed
What session replay masks inside one text node.
A PostHogTextMaskPolicy returns one of these for every plain Text,
RichText, and non-sensitive text input that a replay frame captures.
Ranges are character offsets into the node's rendered string, exactly as
it was passed to the policy. Build one with the named constructors, or
match on the four subtypes.
Constructors
- PostHogTextMask.all()
-
Mask the whole node.
constfactory
-
PostHogTextMask.except(Iterable<
TextRange> ranges) -
Mask the whole node except
ranges.constfactory - PostHogTextMask.none()
-
Leave the whole node visible.
constfactory
-
PostHogTextMask.only(Iterable<
TextRange> ranges) -
Mask only
ranges; the rest of the node stays visible.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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