formatBreakoutRemaining function
"4:05", "1:02:03".
Implementation
String formatBreakoutRemaining(int? ms) {
if (ms == null) return '';
final total = (ms / 1000).ceil();
final h = total ~/ 3600;
final m = (total % 3600) ~/ 60;
final s = (total % 60).toString().padLeft(2, '0');
return h > 0 ? '$h:${m.toString().padLeft(2, '0')}:$s' : '$m:$s';
}