validateDob method

String? validateDob(
  1. String value
)

Implementation

String? validateDob(String value) {
  if (value.isEmpty) {
    return "Please select DoB";
  } else {
    return null;
  }
}