formatCurrency function
Formats a double value to a currency string using the kCurrencyFormatter. Returns 'n/a' if the value is null.
Implementation
String formatCurrency(double? value) {
if (value == null) return formatNullable(value);
return formatNullable(kCurrencyFormatter.format(value));
}