validUnitHour property

bool get validUnitHour

Returns whether the difference can be converted into the time unit hour.

Implementation

bool get validUnitHour =>
    differenceMsAbs < MS_PER_DAY &&
    (differenceMsAbs / MS_PER_HOUR).abs().round() != HR_PER_DAY;