d property Null safety

Duration d

Short-hand for days

Implementation

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