months property

int get months

The number of months in the duration (0-11).

Implementation

int get months => totalMonths.abs() % 12;