removeWhitespace method

String removeWhitespace()

Removes all whitespaces from the string.

Implementation

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