humanReadable property
String
get
humanReadable
Gets human readable format
Implementation
String get humanReadable {
if (inDays > 0) {
return '$inDays day${inDays == 1 ? '' : 's'}';
} else if (inHours > 0) {
return '$inHours hour${inHours == 1 ? '' : 's'}';
} else if (inMinutes > 0) {
return '$inMinutes minute${inMinutes == 1 ? '' : 's'}';
} else {
return '$inSeconds second${inSeconds == 1 ? '' : 's'}';
}
}