validHospitalAddress static method

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

Implementation

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