toStr static method

String toStr(
  1. int time
)

Implementation

static String toStr(int time) {
  final h = (time / 3600).floor();
  final m = ((time - 3600 * h) / 60).floor();
  final s = time - 3600 * h - 60 * m;
  final str = "${z(h)}:${z(m)}:${z(s)}";
  return str;
}