hours property

Duration hours

Returns a Duration representing the current value as hours.

Example:

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

Implementation

Duration get hours {
  return Duration(milliseconds: (1000 * 60 * 60 * this).round());
}