datePickerDateTimeOrder property Null safety
override
The order of the time elements that will be shown in CupertinoDatePicker.
Implementation
@override
DatePickerDateTimeOrder get datePickerDateTimeOrder {
switch (datePickerDateTimeOrderString) {
case 'date_time_dayPeriod':
return DatePickerDateTimeOrder.date_time_dayPeriod;
case 'date_dayPeriod_time':
return DatePickerDateTimeOrder.date_dayPeriod_time;
case 'time_dayPeriod_date':
return DatePickerDateTimeOrder.time_dayPeriod_date;
case 'dayPeriod_time_date':
return DatePickerDateTimeOrder.dayPeriod_time_date;
default:
assert(
false,
'Failed to load DatePickerDateTimeOrder $datePickerDateTimeOrderString '
"for locale $_localeName.\nNon conforming string for $_localeName's "
'.arb file',
);
return DatePickerDateTimeOrder.date_time_dayPeriod;
}
}