scrub method

  1. @override
String scrub(
  1. String input
)
override

Implementation

@override
String scrub(String input) => input
    .replacingOccurrences(
      matchingPattern: pattern,
      replacementProvider: replacementFunction ?? (match) => ' ',
    )
    .trim();