validHospitalName static method

String? validHospitalName({
  1. String? value,
})

Implementation

static String? validHospitalName({String? value}) {
  if (value!.isEmpty) {
    return 'Please enter Hospital name';
  } else if (value.trim().length < 3) {
    return 'Please enter Hospital full name';
  }
  return null;
}