TimeOfDay.fromDuration constructor

TimeOfDay.fromDuration(
  1. Duration duration
)

Implementation

TimeOfDay.fromDuration(Duration duration)
    : hour = duration.inHours,
      minute = duration.inMinutes % 60,
      second = duration.inSeconds % 60;