format method
Implementation
String format({String? format}) {
try {
return Intl.DateFormat(
format ?? getFormattedDateTimeFormat(), window.locale.toString())
.format(getDateAsDateTimeLocal()!);
} catch (e) {
print(e);
try {
return Intl.DateFormat(format ?? getFormattedDateTimeFormat())
.format(getDateAsDateTimeLocal()!);
} catch (e) {
print(e);
return Intl.DateFormat().format(getDateAsDateTimeLocal()!);
}
}
}