RelativeDateTimeController class

A controller class to calculate custom differences in time of two provided DateTime objects.

Constructors

RelativeDateTimeController(DateTime dateTime, DateTime other)
Creates a RelativeDateTimeController.
const

Properties

dateTime DateTime
final
differenceInDuration Duration
Returns the difference of both date times as a Duration.
no setter
differenceInMs int
The difference of both date times. The difference may be negative.
no setter
differenceInMsAbs int
The difference of both date times. The value is always unsigned / abs.
no setter
hashCode int
The hash code for this object.
no setterinherited
other DateTime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateTimeDifference() TimeDifference
Calculates the difference in time and returns a TimeDifference.
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