DurationConst.year constructor

DurationConst.year(
  1. int value
)

Implementation

DurationConst.year(int value) : duration = Duration(days: value * 365);