toAutoTimeLabel method
Implementation
String toAutoTimeLabel() {
if (inMinutes > 60) {
return '$inHours Hours';
}
if (inSeconds > 60) {
return '$inMinutes Minutes';
}
if (inMilliseconds >= 1000) {
return '$inSeconds S';
}
return '$inMilliseconds ms';
}