isValidCharacters method

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

Implementation

@override
bool isValidCharacters(String value) {
  /// check if the characters in value are Turkish characters
  final turkishCharacters = RegExp(r'^[a-zA-ZğüşöçİĞÜŞÖÇ\s]*$');
  return turkishCharacters.hasMatch(value.trim());
}