changeFStr2YWithUnit static method

String changeFStr2YWithUnit(
  1. String amountStr, {
  2. MoneyFormat format = MoneyFormat.normal,
  3. MoneyUnit unit = MoneyUnit.normal,
})

fen str to yuan, format & unit output. 分字符串 转 元, format 与 unit 格式 输出.

Implementation

static String changeFStr2YWithUnit(String amountStr,
    {MoneyFormat format = MoneyFormat.normal,
    MoneyUnit unit = MoneyUnit.normal}) {
  int amount = int.parse(amountStr);
  return changeF2YWithUnit(amount, format: format, unit: unit);
}