timeOfDayToDateTimeString method

String timeOfDayToDateTimeString(
  1. TimeOfDay tod
)

Implementation

String timeOfDayToDateTimeString(TimeOfDay tod) {
  /// Convert TimeOfDay to Date and return as a String
  final now = new DateTime.now();
  final dt = DateTime(now.year, now.month, now.day, tod.hour, tod.minute);
  return dt.toString();
}