CNDatePickerMode enum
What a CNDatePicker lets the user pick.
Values
- date → const CNDatePickerMode
-
A calendar day. The time of day of CNDatePicker.value is kept.
- time → const CNDatePickerMode
-
A time of day, in hours and minutes. The day of CNDatePicker.value is kept.
- dateAndTime → const CNDatePickerMode
-
A day and a time of day.
- yearAndMonth → const CNDatePickerMode
-
A month and a year, with no day.
UIDatePickersupports this mode (iOS 17.4+) only as wheels, so a picker in this mode is always shown as CNDatePickerStyle.wheels, whatever its CNDatePicker.style. On macOS it shows the month and year fields ofNSDatePicker, and the Flutter fallback uses CupertinoDatePickerMode.monthYear. CNDatePicker.onChanged gets the first day of the chosen month at midnight.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
CNDatePickerMode> - A constant List of the values in this enum, in order of their declaration.