removeWhitespace method

String removeWhitespace()

Removes all whitespace from the string.

Implementation

String removeWhitespace() {
  return replaceAll(RegExp(r'\s+'), '');
}