withNormalizedWhitespace method
Replaces all whitespace characters with a single space.
Implementation
String withNormalizedWhitespace() {
return this.replaceAll(RegExp(r'[\s]+'), ' ');
}
Replaces all whitespace characters with a single space.
String withNormalizedWhitespace() {
return this.replaceAll(RegExp(r'[\s]+'), ' ');
}