dateFormatter property
OnAndomieDateFormatter
get
dateFormatter
Implementation
static OnAndomieDateFormatter get dateFormatter {
if (i._dateFormatter != null) return i._dateFormatter!;
throw UnimplementedError(
"dateFormatter has not been initialized yet. First, initialize it using:\n\n"
"$Andomie.init(\n"
" dateFormatter: (format, locale, date) {\n"
" return DateFormat(format, locale).format(date);\n"
" },\n"
");\n\n"
"Or,\n\n"
"$Andomie.dateFormatter = (format, locale, date) {\n"
" return DateFormat(format, locale).format(date);\n"
"},\n\n"
"Then, you can use it.\n",
);
}
set
dateFormatter
(OnAndomieDateFormatter? value)
Andomie.dateFormatter = (format, locale, date) {
return DateFormat(format, locale).format(date);
}
Implementation
static set dateFormatter(OnAndomieDateFormatter? value) {
i._dateFormatter = value;
}