ScrubWithRegEx.custom constructor

const ScrubWithRegEx.custom({
  1. required String pattern,
  2. required String replacementFunction(
    1. String
    )?,
})

Creates a ScrubWithRegEx with a custom regular expression pattern and replacement function.

Implementation

const ScrubWithRegEx.custom({
  required this.pattern,
  required this.replacementFunction,
});