MoneyUtils class
- @Author: chuxiong
- @Created at: 23-07-2025 17:29
- @Email:
- description
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
changeF2Y(int amount, {MoneyFormat format = MoneyFormat.NORMAL})
→ String
-
fen to yuan, format output.
分 转 元, format格式输出.
-
changeF2YWithUnit(int amount, {MoneyFormat format = MoneyFormat.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL})
→ String
-
fen to yuan, format & unit output.
分 转 元, format 与 unit 格式 输出.
-
changeFStr2YWithUnit(String amountStr, {MoneyFormat format = MoneyFormat.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL})
→ String
-
fen str to yuan, format & unit output.
分字符串 转 元, format 与 unit 格式 输出.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
withUnit(String moneyTxt, MoneyUnit unit)
→ String
-
with unit.
拼接单位.