hours property

Duration get hours

Converts hours to a Duration.

Example:

2.hours; // Duration(hours: 2)

Implementation

Duration get hours => Duration(hours: this);