removeSpaces method

String? removeSpaces()

Implementation

String? removeSpaces() {
  if (this == null) return null;
  if (this!.isEmpty) return this;
  return this!.replaceAll(' ', '');
}