formatCurrency static method
格式化为货币(默认¥,可传入其他符号)
Implementation
static String formatCurrency(num? value, {String symbol = '¥', int fractionDigits = 2}) {
if (value == null) return '';
return '$symbol${formatWithComma(value, fractionDigits: fractionDigits)}';
}