formatNullableAmount static method
Formats a nullable amount.
Returns fallback when the value is null.
Implementation
static String formatNullableAmount(
num? amount, {
String symbol = '₹',
String locale = defaultLocale,
int decimalDigits = 0,
}) {
if (amount == null) {
return fallback;
}
return formatAmount(
amount,
symbol: symbol,
locale: locale,
decimalDigits: decimalDigits,
);
}