Money class
Static class defining utility functions to work with money
This is a clone implementation of the paylike JS library
Constructors
- Money()
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
-
fromDouble(
String currency, double n) → PaymentAmount - Converts a double value and a currency into an API compatible PaymentAmount
-
isInSafeRange(
num n) → bool - Returns if the number is in safe range