Time class

Inheritance

Constructors

Time({required int hour, required int minute, int seconds = 0, bool local = true})
Time.fromDateTime(DateTime time, {bool? keepLocal})
factory
Time.fromString(String time, {String divider = ':', bool local = true})
factory
Time.now()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hour int
final
minute int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds int
final

Methods

compareTo(TimeWrapper compare) int
inherited
decrease(Duration value) TimeWrapper
override
difference(TimeWrapper compare) Duration
inherited
format({DateFormat? formatter}) String
override
increase(Duration value) TimeWrapper
override
isAfter(TimeWrapper wrapper, {bool alsoEqual = true}) bool
inherited
isBefore(TimeWrapper wrapper, {bool alsoEqual = true}) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime({TimeStamp? filler, bool keepLocal = false}) DateTime
override
toString() String
A string representation of this object.
inherited

Operators

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