toVnd static method
Implementation
static String toVnd(int value, {bool emptyToZero = true}) {
String empty = emptyToZero ? '0' : '';
try {
NumberFormat formatter = NumberFormat('#,###', 'en_US');
String currency = formatter.format(value);
return currency != '0' ? currency : empty;
} catch (e) {
return empty;
}
}