TimeValue class final

Defines a time offset or interval for any time related classes.

Implemented types

Constructors

TimeValue({required double duration, required TimeUnit unit})
Creates a new time value object.
factory

Properties

duration double
The length of the time value in the TimeValue's unit.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit TimeUnit
The unit of the time value.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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