Denomination class
A denomination type for defining how large values are mapped to suffixes
Constructors
- Denomination.fromSuffix(String suffix)
-
Returns a Denomination from
suffix
, or null if there was no match.factory - Denomination.fromValue(num value, [Denomination? max])
-
Returns a Denomination based on the size of
value
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- minValue → num
-
The minimum value to gain the attached suffix
final
- multiplier → int?
-
An amount that can be multiplied by the formatted number to cancel out
the suffix when parsing
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffix → String
-
The string suffix, if any.
final
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
- Billions → const Denomination
- Hundreds → const Denomination
- Millions → const Denomination
- Thousands → const Denomination
- Trillions → const Denomination