removeWhiteSpaces property

String get removeWhiteSpaces

Removes all whitespace characters (spaces, tabs, newlines, etc.) from the string. Example: "Line 1\tLine 2" => "Line1Line2"

Implementation

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