inYears property
int
get
inYears
Returns the number of whole years spanned by this Duration. Please note that this does not account for leap year.
Implementation
int get inYears => inDays ~/ 365;
Returns the number of whole years spanned by this Duration. Please note that this does not account for leap year.
int get inYears => inDays ~/ 365;