parse method
Implementation
@override
DateTime? parse(String? text) {
if (text != null && isValid(text)) {
try {
return DateFormat(dateFormat, locale).parse(text);
} on Exception catch (_) {
// Do nothing
}
}
return null;
}