CupertinoDatePickerMode enum

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

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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