Time class

Time is used as a way to serialize and deserialize time based notations.

When interacting with this, you can even parse Durations

Constructors

Time.new({required int days, required int hours, required int minutes, required int seconds})
Time.copy(Time other)
factory
Time.fromNotation(String notation)
factory

Properties

days int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hours int
getter/setter pair
minutes int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds int
getter/setter pair

Methods

add(Time time) → void
apply(int seconds) → void
autofix() → void
copy() Time
getTotalSeconds() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subtract(Time time) → void
tickDown() → void
tickUp() → void
toDuration() Duration
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromDuration(Duration duration) Time