months property

num? get months

Implementation

num? get months =>
    isDuration && isMonths(unit) ? num.parse(value.asUcumDecimal()) : null;