validUnitDay property

bool get validUnitDay

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

Implementation

bool get validUnitDay =>
    differenceMsAbs < MS_PER_WEEK &&
    (differenceMsAbs / MS_PER_DAY).abs().round() != DAYS_PER_WK;