TimeOfDay.fromDateTime constructor Null safety
- DateTime time
Creates a time of day based on the given time.
The hour is set to the time's hour and the minute is set to the time's minute in the timezone of the given DateTime.
Implementation
TimeOfDay.fromDateTime(DateTime time)
: hour = time.hour,
minute = time.minute;