RedactRule class

A rule for sanitizing sensitive data before storage.

Constructors

RedactRule({required String name, RegExp? pattern, String replacement = '[REDACTED]', RedactFunction? customFunction})
const
RedactRule.bearerTokens()
Redacts Bearer authentication tokens.
factory
RedactRule.creditCards()
Redacts major credit card numbers (13 to 19 digits with optional spaces or dashes).
factory
RedactRule.emails()
Redacts email addresses.
factory

Properties

customFunction → RedactFunction?
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
pattern → RegExp?
final
replacement → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(String input) → String
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