MoneyUtil class
Money Util.
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
changeF2Y(
int amount, {MoneyFormats format = MoneyFormats.NORMAL}) → String - fen to yuan, format output. 分 转 元, format格式输出.
-
changeF2YWithUnit(
int amount, {MoneyFormats format = MoneyFormats.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL}) → String - fen to yuan, format & unit output. 分 转 元, format 与 unit 格式 输出.
-
changeFStr2YWithUnit(
String amountStr, {MoneyFormats format = MoneyFormats.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL}) → String - fen str to yuan, format & unit output. 分字符串 转 元, format 与 unit 格式 输出.
-
changeY2F(
Object yuan) → int - yuan to fen.F 元 转 分,
-
changeYWithUnit(
Object yuan, MoneyUnit unit, {MoneyFormats? format}) → String - yuan, format & unit output.(yuan is int,double,str). 元, format 与 unit 格式 输出.
-
withUnit(
String moneyTxt, MoneyUnit unit) → String - with unit. 拼接单位.