hours property

Duration get hours

Returns a Duration representing this double value in hours.

Implementation

Duration get hours =>
    Duration(minutes: (this * Duration.minutesPerHour).round());