isValidName method

bool isValidName()

Implementation

bool isValidName() {
  return RegExp(r'^[a-zA-Z\s]+$').hasMatch(this) && length >= 2;
}