DesignTimeOfDay class

A time of day with no date: an hour (0–23), a minute and a second.

ui_core's own, as Flutter's TimeOfDay is Material's; a time field (DesignTimeField) takes and gives one.

Text(DesignLocalizations.of(context).formatTimeOfDay(const DesignTimeOfDay(hour: 15, minute: 5)))
Implemented types
Annotations

Constructors

DesignTimeOfDay({required int hour, required int minute, int second = 0})
The time hour:minute:second.
const
DesignTimeOfDay.fromDateTime(DateTime time)
time's hour, minute and second.

Properties

hashCode → int
The hash code for this object.
no setteroverride
hour → int
The hour, 0 to 23.
final
hourOfPeriod → int
The hour on a 12-hour clock, 1 to 12.
no setter
isPm → bool
Whether it is after noon (12:00 to 23:59).
no setter
minute → int
The minute, 0 to 59.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
second → int
The second, 0 to 59.
final

Methods

compareTo(DesignTimeOfDay other) → int
Compares this object to another object.
override
isAfter(DesignTimeOfDay other) → bool
Whether it comes after other in the day.
isBefore(DesignTimeOfDay other) → bool
Whether it comes before other in the day.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
replacing({int? hour, int? minute, int? second}) → DesignTimeOfDay
This time with the given parts changed.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override