hr property
Duration
get
hr
Converts this number to a Duration in hours.
Fractional values are truncated with toInt().
Example: 2.hr -> Duration(hours: 2) for daily refresh.
Implementation
Duration get hr => Duration(hours: toInt());