ScrubWithRegEx class

A class named ScrubWithRegEx that implements the Scrubber interface. ScrubWithRegEx is a scrubber that uses a regular expression to scrub strings.

Implemented types

Constructors

ScrubWithRegEx({String? pattern})
Creates a ScrubWithRegEx with an optional custom regular expression pattern. If no pattern is provided, a default pattern that matches whitespace is used.
const
ScrubWithRegEx.custom({required String pattern, required String replacementFunction(String)?})
Creates a ScrubWithRegEx with a custom regular expression pattern and replacement function.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
pattern String
final
replacementFunction String Function(String)?
final
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
scrub(String input) String
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

defaultPattern → const String