MoneyFormat enum
金额展示的小数格式策略,用于 MoneyUtils.changeF2Y。
Values
- NORMAL → const MoneyFormat
-
保留两位小数(
6.00)。 - END_INTEGER → const MoneyFormat
-
去掉末尾 0(
6.00→6,6.60→6.6)。 - YUAN_INTEGER → const MoneyFormat
-
整元去掉小数部分(
6.00→6),非整元仍保留两位小数。
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
MoneyFormat> - A constant List of the values in this enum, in order of their declaration.