formatTimeOfDay static method

String formatTimeOfDay(
  1. TimeOfDay tod
)

Implementation

static String formatTimeOfDay(TimeOfDay tod) {
  final now = new DateTime.now();
  final dt = DateTime(now.year, now.month, now.day, tod.hour, tod.minute);
  return DateFormat("HH:mm:ss").format(dt);
}