removeSpecialCharacters method

String? removeSpecialCharacters()

Implementation

String? removeSpecialCharacters() {
  if (this == null) return null;
  if (this!.isEmpty) return this;
  return this!.replaceAll(RegExp(r'[!@#$%^&*(),.?":{}|<>]'), '');
}