isPrecise property

bool isPrecise

Returns true if both years and months are equal to 0, meaning that toSeconds method can be accurately calculated.

Implementation

bool get isPrecise => years == 0 && months == 0;