hours property Null safety

Duration hours

Returns a Duration representing the current value as hours.

Example:

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

Implementation

Duration get hours {
  return Duration(hours: this);
}