tryFrom static method

FlexiDate? tryFrom(
  1. dynamic input
)

Implementation

static FlexiDate? tryFrom(input) {
  try {
    if (input == null) return null;
    return from(input);
  } catch (e) {
    _log.finer("Date parse error: $e");
    return null;
  }
}