removeSpecialChars property

String get removeSpecialChars

Removes all special characters, leaving only alphanumeric values and spaces.

Implementation

String get removeSpecialChars => replaceAll(RegExp(r'[^\w\s]+'), '');