changeFStr2YWithUnit static method
String
changeFStr2YWithUnit(
- String amountStr, {
- MoneyFormats format = MoneyFormats.NORMAL,
- MoneyUnit unit = MoneyUnit.NORMAL,
fen str to yuan, format & unit output. 分字符串 转 元, format 与 unit 格式 输出.
Implementation
static String changeFStr2YWithUnit(String amountStr,
{MoneyFormats format = MoneyFormats.NORMAL,
MoneyUnit unit = MoneyUnit.NORMAL}) {
int amount = int.parse(amountStr);
return changeF2YWithUnit(amount, format: format, unit: unit);
}