minToHourStr function

String minToHourStr(
  1. int i
)

Implementation

String minToHourStr(int i) {
  var h = i ~/ 60;
  var m = i % 60;
  return "${h.toString().padLeft(2, "0")}:${m.toString().padLeft(2, "0")}";
}