removeSpaces method

String removeSpaces()

Implementation

String removeSpaces() {
  String result = this;
  return result.replaceAll(RegExp(r'\s+'), ' ').trim();
}