Price class Null safety
Represents Price. Price in Stellar is represented as a fraction.
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
-
toXdr(
) → XdrPrice - Generates Price XDR object.
Operators
-
operator ==(
Object object) → bool -
The equality operator.
override
Static Methods
-
fromString(
String price) → Price -
Approximates
price
to a fraction. Please remember that this function can give unexpected results for values that cannot be represented as a fraction with 32-bit numerator and denominator. It's safer to create a Price object using the constructor.