formatHHMMSS property
String
get
formatHHMMSS
Formats this duration as HH:mm:ss.
Hours are not capped to 24.
Example:
Duration(seconds: 3661).formatHHMMSS; // "01:01:01"
Implementation
String get formatHHMMSS {
final hours = twoDigits(inHours);
final minutes = twoDigits(inMinutes.remainder(60));
final seconds = twoDigits(inSeconds.remainder(60));
return "$hours:$minutes:$seconds";
}