validHospitalName static method
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;
}