removeAll method
Returns a new string with all occurrences of pattern removed.
Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
String removeAll(Pattern? pattern) {
if (pattern == null) {
return this;
}
return replaceAll(pattern, '');
}