TimeDifference class

A model class describing a difference in time of two time stamps.

The value may be negative resulting in a past point in time.

Constructors

TimeDifference({required int value, required LitTimeUnit unit})
Creates a TimeDifference.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isSingular bool
States whether the difference value is 1.
no setter
isSmallestUnit bool
States whether the difference unit is second.
no setter
isZero bool
States whether the difference value is 0.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit LitTimeUnit
The time unit.
final
value int
The time unit's value.
final

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