ParselyMasks class
Map-based masking configuration.
Precedence when resolving a mask: ParselyMaskBuilder (if provided)
→ fromBuilder → exact → patterns → maskAll → stripped display.
Constructors
-
ParselyMasks({Map<
String, String> exact = const {}, List<(Pattern, String)> patterns = const [], Set<ParselyType> maskAll = const {}}) -
Creates a ParselyMasks config from
exact,patternsandmaskAll.const
Properties
-
exact
→ Map<
String, String> -
Exact decoded value → display replacement.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maskAll
→ Set<
ParselyType> -
Mask every entity of these types.
final
-
patterns
→ List<
(Pattern, String)> -
Pattern → replacement pairs. The Pattern may be a RegExp.
The first matching entry wins.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
masksType(
ParselyType type) → bool -
Whether
elementshould be masked by type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ParselyElement element) → String? -
Returns the display override for
element, ornullfor no mask. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
defaultMaskFor(
ParselyType type) → String -
Default display for a maskAll type:
•repeated 4 times.