years property Null safety

Duration years

Return current int in Duration of years (356 days/ year)

Implementation

Duration get years {
  return Duration(days: 365 * this);
}