formatNullableDate static method
Formats a nullable date.
Returns fallback when date is null.
Implementation
static String formatNullableDate(
DateTime? date, {
String format = defaultFormat,
String? locale,
}) {
if (date == null) {
return fallback;
}
return formatDate(date, format: format, locale: locale);
}