ScrubWithRegEx constructor
const
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.
Implementation
const ScrubWithRegEx({String? pattern})
: pattern = pattern ?? defaultPattern,
replacementFunction = null;