FTime class final

Represents the time of day.

Implemented types

Constructors

FTime.new([int hour = 0, int minute = 0])
Creates a FTime.
const
FTime.fromDateTime(DateTime dateTime)
Creates a FTime based on the given DateTime.
FTime.now()
Creates a FTime based on the current time.

Properties

hashCode int
The hash code for this object.
no setteroverride
hour int
The hour. Always in 24-hour format.
final
minute int
The minute.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(FTime other) int
Compares this object to another object.
override
copyWith({int? hour, int? minute}) FTime
Returns a new FTime with the hour and/or minute replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
withDate(DateTime date) DateTime
Returns a DateTime with the date part of date and the time part of this FTime.

Operators

operator <(FTime other) bool
Returns true if this time is before other.
operator <=(FTime other) bool
Returns true if this time is before or equal to other.
operator ==(Object other) bool
The equality operator.
override
operator >(FTime other) bool
Returns true if this time is after other.
operator >=(FTime other) bool
Returns true if this time is after or equal to other.