months property Null safety

Duration months

Return current int in Duration of month (30 days / month)

Implementation

Duration get months {
  final days = (this * 30).toInt();
  return Duration(days: days);
}