trimExtra method

String? trimExtra()

Remove Leading and Trailing Spaces and remove Duplicate Spaces

Implementation

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