toSingleSpaceOnly method

String toSingleSpaceOnly()

Implementation

String toSingleSpaceOnly() => replaceAll(RegExp(r"\s+"), " ").trim();