toPaddedString method
01:02:34 — always zero-pads all components (useful for fixed-width UI)
Implementation
String toPaddedString() {
final abs = this.abs();
final h = '${abs.inHours}'.padLeft(2, '0');
final m = '${abs.inMinutes % 60}'.padLeft(2, '0');
final s = '${abs.inSeconds % 60}'.padLeft(2, '0');
final body = abs.inHours > 0 ? '$h:$m:$s' : '$m:$s';
return isNegative ? '-$body' : body;
}