removeWhiteSpace property
String
get
removeWhiteSpace
Removes all the white spaces from the String.
Example:
String f = 'Hello World';
String noWhiteSpace = f.removeWhiteSpace; // 'HelloWorld'
Implementation
String get removeWhiteSpace => replaceAll(RegExp(r'\s+'), '');