formatRupiah function

String formatRupiah(
  1. double number
)

Implementation

String formatRupiah(double number) {
  return NumberFormat.currency(
    locale: "id-ID",
    symbol: "Rp. ",
    decimalDigits: 0,
  ).format(number);
}