removeWhitespace method

String removeWhitespace()

Removes all whitespace (including internal spaces) from this string.

'hello world'.removeWhitespace() // 'helloworld'

Implementation

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