part of 'extension.dart'; extension IntegerExt on int { String get currencyFormatRp => NumberFormat.currency( locale: 'id', symbol: 'Rp. ', decimalDigits: 0, ).format(this); /// Format ribuan tanpa simbol mata uang, contoh: 1.639 String get thousandFormat => NumberFormat.decimalPattern('id').format(this); }