formatINR static method

String formatINR(
  1. dynamic amount, {
  2. bool showDecimals = false,
})

Implementation

static String formatINR(dynamic amount, {bool showDecimals = false}) {
  return NumberFormat.currency(
    locale: 'en_IN', // Indian locale for proper formatting
    symbol: '₹',     // INR symbol
    decimalDigits: showDecimals ? 2 : 0, // Control decimals
  ).format(amount);
}