formatTimeToStr static method

String formatTimeToStr(
  1. DateTime time
)

Implementation

static String formatTimeToStr(DateTime time) {
  return "${time.hour..toString().padLeft(2, '0')}:${time.minute..toString().padLeft(2, '0')}:${time.second..toString().padLeft(2, '0')}";
}