prettyFormat method
Implementation
String prettyFormat() {
final hh = (this?.inHours ?? 0).toString();
final mm = ((this?.inMinutes ?? 0).remainder(60)).toString();
final ss = ((this?.inSeconds ?? 0).remainder(60)).toString();
if (hh != '0') return '$hh h $mm min $ss sec';
if (mm != '0') return '$mm min $ss sec';
if (ss != '0') return '$ss sec';
return '';
}