toCupertinoDatePickerMode method

CupertinoDatePickerMode toCupertinoDatePickerMode()

Implementation

CupertinoDatePickerMode toCupertinoDatePickerMode() => switch (this) {
      DateTimeFieldPickerMode.time => CupertinoDatePickerMode.time,
      DateTimeFieldPickerMode.date => CupertinoDatePickerMode.date,
      DateTimeFieldPickerMode.dateAndTime =>
        CupertinoDatePickerMode.dateAndTime,
    };