normalizeSpaces method

String normalizeSpaces()

Çoklu boşlukları tek boşluk yapar

Implementation

String normalizeSpaces() {
  if (this == null) return '';
  return this!.replaceAll(RegExp(r'\s+'), ' ').trim();
}