Time class

Represents a time with hours and minutes.

Constructors

Time([int hour = 0, int minute = 0])
Constructs a Time object with optional hour and minute values.

Properties

hashCode int
The hash code for this object.
no setterinherited
hour int
The hour component of the time.
final
minute int
The minute component of the time.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Returns a formatted string representation of the time value.
no setter

Methods

isAfter(Time time) bool
Checks if this time occurs after another time.
isBefore(Time time) bool
Checks if this time occurs before another time.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(String value) Time
Parses a string value into a Time object.