hours property

Duration get hours

Converts the integer to a Duration representing the given number of hours.

Example:

final duration = 12.hours;

Implementation

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