compareTo method
Compares this Time object to other
, returning 0
if the values are
equal.
A compareTo function returns:
- a negative value if this Time isBefore
other
. - 0 if this DateTime isAtSameMomentAs
other
. - a positive value if this Time isAfter
other
.
Implementation
int compareTo(Time other) => _dateTime.compareTo(other._dateTime);