tryParseFormat static method
Like parseFormat, but returns null instead of throwing
FormatException. Still throws ArgumentError for a pattern that
cannot be parsed.
Implementation
static PersianDate? tryParseFormat(
String input,
String pattern, {
JalaliEra era = JalaliEra.solarHijri,
}) =>
parseWithPattern(input, pattern, era);