years property

Duration get years

Returns years duration

5.years

Implementation

Duration get years => Duration(days: (validate() * 365));