parse method

  1. @override
DateTime? parse(
  1. String? text
)
override

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;
}