TimeOfDayFormat enum Null safety

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

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