hours property
Duration
hours
Returns a Duration
object representing the number of hours represented by this number.
Example usage:
var fiveHours = 5.hours;
print(fiveHours); // prints "Duration: 5:00:00.000000"
Implementation
Duration get hours => Duration(hours: this as int);