compactSuffix method
Implementation
String? compactSuffix() {
double value = double.tryParse(this) ?? 0;
if (value >= 10000000) {
return 'Cr';
} else if (value >= 100000) {
return 'Lakh';
} else if (value >= 1000) {
return 'K';
} else {
return null;
}
}