removeWhitespace method

String removeWhitespace()

Returns a copy of this string with all whitespace removed.

Implementation

String removeWhitespace() =>
    this == null ? '' : this!.replaceAll(RegExp(r'\s+'), '');