hours property Null safety

Duration hours

Return current int in Duration of hours

Implementation

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