validateFirstName method

String? validateFirstName(
  1. String value
)

Implementation

String? validateFirstName(String value) {
  if (value.isEmpty) {
    return "Please Enter your first name";
  } else {
    return null;
  }
}