tryParse static method

  1. @deprecated
DateComponents? tryParse(
  1. String input
)

Implementation

@deprecated
static DateComponents? tryParse(String input) {
  try {
    return _fromFlexiDate(FlexiDate.parse(input))!;
  } catch (e) {
    _log.finer("Date parse error: $e");
    return null;
  }
}