RelativeDateTimeController class

A controller class to calculate which time unit is the closest to the canceled difference of the provided DateTime objects.

Constructors

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

Properties

dateTime DateTime
final
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 containing the final result including its time unit.
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