AmountFormat enum
Describes possible Amount formatting options.
- Inheritance
- Implemented types
- Available extensions
Values
- integer → const AmountFormat
-
Amount value will be formatted as an integer truncating any fractional parts.
For instance:
XXXX
. - flexibleDouble → const AmountFormat
-
Amount value will be formatted depending on the presence of the fractional part. If fractional part contains only one digit, it will be formatted as a single fractional digit.
For instance:
XXXX
/XXXX.X
/XXXX.XX
. - fixedDouble → const AmountFormat
-
Amount value will be formatted as a double value with fixed 2 digits after the decimal point, no matter whether this value has a fractional part or not.
For instance:
XXXX.XX
.
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
-
format(
Amount value, [int? precision]) → String -
Formats Amount.
override
-
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<
AmountFormat> - A constant List of the values in this enum, in order of their declaration.