TimeDifferenceController class

A LitRelativeDateTime controller class implementing checks performed on TimeDifference model classes.

Constructors

TimeDifferenceController(TimeDifference timeDifference)
Creates a TimeDifferenceController.
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
timeDifference → TimeDifference
The time difference.
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