validateDob method

bool validateDob()

Implementation

bool validateDob() {
  return RegExp(r'^([0-9]{4}[-][0-9]{2}[-][0-9]{2}$)').hasMatch(this);
}