timeOfDayToDateTime static method

DateTime? timeOfDayToDateTime(
  1. TimeOfDay time
)

Implementation

static DateTime? timeOfDayToDateTime(TimeOfDay time) {
  final now = DateTime.now();
  return DateTime(now.year, now.month, now.day, time.hour, time.minute);
}