hourMinSec method
获取剩余时间 时分秒: 12:03:01
Implementation
String hourMinSec(int time) {
final residueTime = time.abs();
final hour = residueTime / 60 ~/ 60;
final min = ((residueTime / 60) % 60).toInt();
final second = residueTime % 60;
final h = hour.toString().padLeft(2, '0');
final m = min.toString().padLeft(2, '0');
final s = second.toString().padLeft(2, '0');
return time > 0 ? '$h:$m:$s' : '-$h:$m:$s';
}