validateLastName method

String? validateLastName(
  1. String value
)

Implementation

String? validateLastName(String value) {
  if (value.isEmpty) {
    return "Please enter your last name";
  } else {
    return null;
  }
}