toDurationLocal method

String toDurationLocal()

Implementation

String toDurationLocal() {
  if (inDays >= 1) {
    return '${inDays} days';
  } else if (inHours >= 1) {
    return '${inHours} hours';
  } else if (inMinutes >= 1) {
    return '${inMinutes} minutes';
  } else if (inSeconds >= 1) {
    return '${inSeconds} seconds';
  } else if (inMilliseconds >= 1) {
    return '${inMilliseconds} milliseconds';
  } else if (inMicroseconds >= 1) {
    return '${inMicroseconds} microseconds';
  } else {
    return "Life Time";
  }
}