removeExtraSpace method

String removeExtraSpace()

this will remove extra spaces (i.e., > 1 space in sequence);

Implementation

String removeExtraSpace() => replaceAll(RegExp(r'\s{2,}'), ' ');