removeAllWhitespace method

String removeAllWhitespace()

Removes all whitespace from the string.

Example:

print('hello world'.removeAllWhitespace()); // helloworld

Implementation

String removeAllWhitespace() => replaceAll(RegExp(r'\s+'), '');