cleanStringAndSpaces property

String? cleanStringAndSpaces

Remove special characters and spaces from the String

Implementation

String? get cleanStringAndSpaces {
  if (isNotNullOrEmpty) {
    return replaceAll(RegExp(r'[^\w\s]+'), '').replaceAll(' ', '');
  } else {
    return null;
  }
}