removeExtraWhiteSpaces property
Remove extra whitespace between words then trim.
Implementation
String get removeExtraWhiteSpaces {
final regex = RegExp(r'\S+');
final words = regex.allMatches(this).map((v) => v.group(0)).join(' ');
return words;
}