h property Null safety

Duration h

Short-hand for hours

Implementation

Duration get h {
  final mins = (this * 60).toInt();
  return Duration(minutes: mins);
}