months property
int
get
months
The number of months in the duration (0-11).
Implementation
int get months => totalMonths.abs() % 12;
The number of months in the duration (0-11).
int get months => totalMonths.abs() % 12;