nameValidator method

bool nameValidator(
  1. String name
)

Implementation

bool nameValidator(String name) {
  return RegExp(r"^[a-zA-Z]+$").hasMatch(name);
}