days property Null safety

Duration days

Return current int in Duration of days

Implementation

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