datePickerDateOrder property

  1. @override
DatePickerDateOrder datePickerDateOrder
override

The order of the date elements that will be shown in CupertinoDatePicker.

Implementation

@override
DatePickerDateOrder get datePickerDateOrder {
  switch (datePickerDateOrderString) {
    case 'dmy':
      return DatePickerDateOrder.dmy;
    case 'mdy':
      return DatePickerDateOrder.mdy;
    case 'ymd':
      return DatePickerDateOrder.ymd;
    case 'ydm':
      return DatePickerDateOrder.ydm;
    default:
      assert(
        false,
        'Failed to load DatePickerDateOrder $datePickerDateOrderString for '
        "locale $_localeName.\nNon conforming string for $_localeName's "
        '.arb file',
      );
      return DatePickerDateOrder.mdy;
  }
}