TimeOfDayFormat enum

Determines how the time picker invoked using showTimePicker formats and lays out the time controls.

The time picker provides layout configurations optimized for each of the enum values.

Constants

a_space_h_colon_mm → const TimeOfDayFormat

Corresponds to the ICU 'a h:mm' pattern.

This format uses 12-hour non-padded variable-length hours with a day period. Controls are laid out horizontally in portrait mode. In landscape mode, the day period appears vertically before (consistent with the ambient TextDirection) hour-minute indicator. Hours are separated from minutes by one colon character.

const TimeOfDayFormat(5)
frenchCanadian → const TimeOfDayFormat

Corresponds to the ICU "HH 'h' mm" pattern used in Canadian French.

This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by letter 'h'.

const TimeOfDayFormat(2)
H_colon_mm → const TimeOfDayFormat

Corresponds to the ICU 'H:mm' pattern.

This format uses 24-hour non-padded variable-length hours. Controls are always laid out horizontally. Hours are separated from minutes by one colon character.

const TimeOfDayFormat(3)
h_colon_mm_space_a → const TimeOfDayFormat

Corresponds to the ICU 'h:mm a' pattern.

This format uses 12-hour non-padded variable-length hours with a day period. Controls are laid out horizontally in portrait mode. In landscape mode, the day period appears vertically after (consistent with the ambient TextDirection) hour-minute indicator. Hours are separated from minutes by one colon character.

const TimeOfDayFormat(4)
HH_colon_mm → const TimeOfDayFormat

Corresponds to the ICU 'HH:mm' pattern.

This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by one colon character.

const TimeOfDayFormat(0)
HH_dot_mm → const TimeOfDayFormat

Corresponds to the ICU 'HH.mm' pattern.

This format uses 24-hour two-digit zero-padded hours. Controls are always laid out horizontally. Hours are separated from minutes by one dot character.

const TimeOfDayFormat(1)
values → const List<TimeOfDayFormat>

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

const List<TimeOfDayFormat>

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

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