MoneyUtil class
货币工具类
another Fairy
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
-
fenToYuan(
int fen, {MoneyFormat format = MoneyFormat.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL}) → String - 分转元
-
fenToYuanByStr(
String fenStr, {MoneyFormat format = MoneyFormat.NORMAL, MoneyUnit unit = MoneyUnit.NORMAL}) → String - 分转元
-
yuanToFen(
double yuan) → int - 元转分
-
yuanToFenByStr(
String yuanStr) → int - 元转分
-
yuanWithSelfUnit(
double yuan, String unit, {MoneyFormat? format, bool prefix = true}) → String - 元拼接单位
-
yuanWithUnit(
double yuan, {MoneyFormat? format, MoneyUnit unit = MoneyUnit.NORMAL}) → String - 元拼接单位