durationLabel property
String
get
durationLabel
Implementation
String get durationLabel {
final d = duration;
if (d == null) return '…';
if (d.inMilliseconds < 1000) return '${d.inMilliseconds} ms';
return '${(d.inMilliseconds / 1000).toStringAsFixed(1)} s';
}