removeAll method

String removeAll(
  1. Pattern? pattern
)

Replaces all occurrences of pattern with an empty string.

Implementation

String removeAll(Pattern? pattern) {
  if (pattern == null) return this;
  return replaceAll(pattern, '');
}