shortString property

String get shortString

Implementation

String get shortString {
  if (inHours > 0) return '${inHours}s ${inMinutes.remainder(60)}d';
  if (inMinutes > 0) return '${inMinutes}d ${inSeconds.remainder(60)}sn';
  return '${inSeconds}sn';
}