formatPrice function

String formatPrice(
  1. double price
)

Implementation

String formatPrice(double price) {
  final format = NumberFormat.currency(
    locale: 'en_IN',
    symbol: '₹ ',
    decimalDigits: 0,
  );
  return format.format(price);
}