validUnitSecond property

bool get validUnitSecond

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

Implementation

bool get validUnitSecond =>
    differenceMsAbs < MS_PER_MINUTE &&
    (differenceMsAbs / MS_PER_SECOND).abs().round() != SEC_PER_MIN;