currencyFormatWithDef method
Implementation
String currencyFormatWithDef(bool autoMoneyUnit) {
if (this == null) {
return autoMoneyUnit ? "0" : "0.00";
}
final resultAmount = this! / 100;
if (autoMoneyUnit) {
return _formatPrice(resultAmount);
}
return resultAmount.toStringAsFixed(2);
}