validatorLetter function

bool validatorLetter(
  1. dynamic value
)

Implementation

bool validatorLetter(value) {
  final RegExp re = RegExp(r'^[a-zA-Z]+$');
  final bool matches = re.hasMatch(value);
  return !matches;
}