toLeft method
Implementation
String toLeft() {
if (inDays >= 1) {
return '${inDays} day(s) left';
} else if (inHours >= 1) {
return '${inHours} hour(s) left';
} else if (inMinutes >= 1) {
return '${inMinutes} minute(s) left';
} else if (inSeconds >= 1) {
return '${inSeconds} second(s) left';
} else if (inMilliseconds >= 1) {
return '${inMilliseconds} millisecond(s) left';
} else if (inMicroseconds >= 1) {
return '${inMicroseconds} microsecond(s) left';
} else {
return "just now";
}
}