ScrubWithRegEx constructor

const ScrubWithRegEx({
  1. 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;