AnonymizationConfig class

Flexible anonymization configuration with custom filter rules

Constructors

AnonymizationConfig({bool? enabled, List<String>? whitelistTexts, List<String>? blacklistTexts, bool? enablePiiFiltering, List<PiiFilterRule>? piiFilterRules})
const
AnonymizationConfig.fromMap(Map<String, dynamic> map)
Create from Map (for deserialization)
factory

Properties

blacklistTexts List<String>?
List of texts that should ALWAYS be anonymized (blacklist) Case-insensitive matching. Takes precedence over whitelist
final
enabled bool?
Enable or disable text anonymization in screenshots
final
enablePiiFiltering bool?
Enable or disable PII filtering for UI text capture
final
hashCode int
The hash code for this object.
no setterinherited
piiFilterRules List<PiiFilterRule>?
Flexible list of filter rules that define what and how to filter Each rule can have custom regex, replacement, and context requirements
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whitelistTexts List<String>?
List of texts that should NOT be anonymized (whitelist) Case-insensitive matching
final

Methods

copyWith({bool? enabled, List<String>? whitelistTexts, List<String>? blacklistTexts, bool? enablePiiFiltering, List<PiiFilterRule>? piiFilterRules}) AnonymizationConfig
Create a copy with updated values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to Map for serialization
toString() String
A string representation of this object.
override

Operators

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