formatTimeOfDay method
Formats a TimeOfDay using this DateFormat instance.
Implementation
String formatTimeOfDay(TimeOfDay timeOfDay) {
final now = DateTime.now();
final dateTime = DateTime(
now.year,
now.month,
now.day,
timeOfDay.hour,
timeOfDay.minute,
);
return format(dateTime);
}