isValidName property

bool get isValidName

Implementation

bool get isValidName {
  final nameRegExp = RegExp(
    r"^\s*([A-Za-z]{1,}([\.,] |[-']| ))+[A-Za-z]+\.?\s*$",
  );
  return nameRegExp.hasMatch(this);
}