isValidCharacters method

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

Implementation

@override
bool isValidCharacters(String value) {
  /// check if the characters in value are arabic characters
  final arabicCharacters = RegExp(r'^[\u0621-\u064A\s]*$');
  return arabicCharacters.hasMatch(value.trim());
}