removeAllWhitespace method
Removes all whitespace from the string.
Example:
print('hello world'.removeAllWhitespace()); // helloworld
Implementation
String removeAllWhitespace() => replaceAll(RegExp(r'\s+'), '');
Removes all whitespace from the string.
Example:
print('hello world'.removeAllWhitespace()); // helloworld
String removeAllWhitespace() => replaceAll(RegExp(r'\s+'), '');