CupertinoDatePickerMode enum Null safety

Different display modes of CupertinoDatePicker.

See also:

  • CupertinoDatePicker, the class that implements different display modes of the iOS-style date picker.
  • CupertinoPicker, the class that implements a content agnostic spinner UI.

Constants

date → const CupertinoDatePickerMode

Mode that shows the date in month, day of month, and year. Name of month is spelled in full. Column order is subject to internationalization.

Example: July | 13 | 2012.

const CupertinoDatePickerMode(1)
dateAndTime → const CupertinoDatePickerMode

Mode that shows the date as day of the week, month, day of month and the time in hour, minute, and (optional) an AM/PM designation. The AM/PM designation is shown only if CupertinoDatePicker does not use 24h format. Column order is subject to internationalization.

Example: Fri Jul 13 | 4 | 14 | PM

const CupertinoDatePickerMode(2)
time → const CupertinoDatePickerMode

Mode that shows the date in hour, minute, and (optional) an AM/PM designation. The AM/PM designation is shown only if CupertinoDatePicker does not use 24h format. Column order is subject to internationalization.

Example: 4 | 14 | PM.

const CupertinoDatePickerMode(0)
values → const List<CupertinoDatePickerMode>

A constant List of the values in this enum, in order of their declaration.

const List<CupertinoDatePickerMode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited