years property
Duration
get
years
Returns years duration
5.years
Implementation
Duration get years => Duration(days: (validate() * 365));
Returns years duration
5.years
Duration get years => Duration(days: (validate() * 365));