changeF2YWithUnit static method

String changeF2YWithUnit(
  1. int amount, {
  2. MoneyFormats format = MoneyFormats.NORMAL,
  3. MoneyUnit unit = MoneyUnit.NORMAL,
})

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

Implementation

static String changeF2YWithUnit(int amount,
    {MoneyFormats format = MoneyFormats.NORMAL,
    MoneyUnit unit = MoneyUnit.NORMAL}) {
  return withUnit(changeF2Y(amount, format: format), unit);
}