isValidCharacters method

  1. @override
bool isValidCharacters(
  1. String value
)
override

Implementation

@override
bool isValidCharacters(String value) {
 /// check if the characters in value are english characters
  final englishCharacters = RegExp(r'^[a-zA-Z\s]*$');
  return englishCharacters.hasMatch(value.trim());
}