timeOfDay property

TimeOfDay get timeOfDay

convert Duration to TimeOfDay, only hour and minute will be keep.

Implementation

TimeOfDay get timeOfDay {
  return TimeOfDay(hour: inHours % 24, minute: inMinutes % 60);
}