removeWhiteSpaces property

String? get removeWhiteSpaces

Removes all whitespace characters (spaces, tabs, newlines, etc.) from the string.

Implementation

String? get removeWhiteSpaces => this?.replaceAll(RegExp(r'\s+'), '');