first commit
This commit is contained in:
11
lib/resource/convert_money/convert_money.dart
Normal file
11
lib/resource/convert_money/convert_money.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:intl/intl.dart';
|
||||
class CurrencyFormat {
|
||||
static String convertToIdr(dynamic number, int decimalDigit) {
|
||||
NumberFormat currencyFormatter = NumberFormat.currency(
|
||||
locale: 'id',
|
||||
symbol: 'Rp. ',
|
||||
decimalDigits: decimalDigit,
|
||||
);
|
||||
return currencyFormatter.format(number);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user