Money class

Constructors

Money(double amount, String currency, [int precision = 100000])
factory
Money.fromFMU(int fmu, String currency, [int precision = 100000])
factory
Money.fromMap(Map<String, dynamic>? json, [String? id, bool okey = false])
id and okey do not meaning anything. its is used to meet the serialization convention of Laams data types.
factory
Money.init([int fmu = 0, String currency = '', int precision = 100000])
const

Properties

amount double
no setter
currency String
final
fmu int
final
hashCode int
The hash code for this object.
no setteroverride
precision int
Precision could be more no more than 100000
final
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
toMap(bool isFirestore) Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator +(Money other) Money
operator -(Money other) Money
operator <(dynamic other) bool
operator <=(dynamic other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(dynamic other) bool
operator >=(dynamic other) bool