compact method
Implementation
String compact() {
if (this >= 10000000) {
return '${(this / 10000000).toStringAsFixed(1)} Cr';
} else if (this >= 100000) {
return '${(this / 100000).toStringAsFixed(1)} Lakh';
} else if (this >= 1000) {
return '${(this / 1000).toStringAsFixed(1)} K';
} else {
return round().toString();
}
}