toDateTime method

DateTime toDateTime([
  1. TimeOfDay? time
])

Implementation

DateTime toDateTime([TimeOfDay? time]) => DateTime(year, month, day, (time?.hour ?? 0), (time?.minute ?? 0));