combine method

DateTime combine(
  1. TimeOfDay time
)

Sets the hour and minute of a DateTime from a TimeOfDay.

Implementation

DateTime combine(TimeOfDay time) {
  return DateTime(year, month, day, time.hour, time.minute);
}