moneyFormatWithUnit method
Implementation
String moneyFormatWithUnit(bool autoMoneyUnit) {
if (isNullOrEmpty) return "0.00";
final value = this!;
if (autoMoneyUnit && value >= 1000000) {
return "${(value / 1000000).toStringAsFixed(2)}万";
}
return (value / 100).toStringAsFixed(2);
}