feat: int and string extension

This commit is contained in:
efrilm
2025-08-13 00:26:59 +07:00
parent e732a27914
commit 3d43d7a934
4 changed files with 49 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
part of 'extension.dart';
extension IntegerExt on int {
String get currencyFormatRp => NumberFormat.currency(
locale: 'id',
symbol: 'Rp. ',
decimalDigits: 0,
).format(this);
}