shortCount property
String
get
shortCount
Implementation
String get shortCount {
var number = this;
if (number > 999 && number < 99999) {
return "${(number / 1000).toStringAsFixed(1)}b";
} else if (number > 99999 && number < 999999) {
return "${(number / 1000).toStringAsFixed(0)}b";
} else if (number > 999999 && number < 999999999) {
return "${(number / 1000000).toStringAsFixed(1)}ml";
} else if (number > 999999999) {
return "${(number / 1000000000).toStringAsFixed(1)}my";
} else {
return number.toString();
}
}