toPrice method
String?
toPrice(
- int amount, {
- MoneyFormats format = MoneyFormats.NORMAL,
- MoneyUnit unit = MoneyUnit.NORMAL,
Implementation
String? toPrice(
int amount, {
MoneyFormats format = MoneyFormats.NORMAL,
MoneyUnit unit = MoneyUnit.NORMAL,
}) {
if (this == null) {
return null;
}
return MoneyUtil.changeFStr2YWithUnit(
this!,
format: format,
unit: unit,
);
}