removeAllWhiteSpace method

String removeAllWhiteSpace()

Removes all whitespace characters from the string.

Implementation

String removeAllWhiteSpace() =>
    validate().replaceAll(RegExp(r"\s+\b|\b\s"), "");