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.

Inheritance

Constructors

TimeOfDayFormat()
const

Values

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.

TimeOfDayFormat()
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.

TimeOfDayFormat()
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'.

TimeOfDayFormat()
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.

TimeOfDayFormat()
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.

TimeOfDayFormat()
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.

TimeOfDayFormat()

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
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.
inherited

Operators

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

Constants

values → const List<TimeOfDayFormat>
A constant List of the values in this enum, in order of their declaration.
[HH_colon_mm, HH_dot_mm, frenchCanadian, H_colon_mm, h_colon_mm_space_a, a_space_h_colon_mm]