inHours property Null safety

int inHours

Returns the number of whole hours spanned by this Duration.

The returned value can be greater than 23.

Implementation

int get inHours => _duration ~/ Duration.microsecondsPerHour;