TokenAmount class

Inheritance

Constructors

TokenAmount(Token token, BigInt raw)

Properties

currency Currency
getter/setter pairinherited
decimalScale BigInt
getter/setter pairinherited
denominator BigInt
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
numerator BigInt
getter/setter pairinherited
raw BigInt
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token Token
getter/setter pair

Methods

add(Fraction otherParsed) Fraction
inherited
asFraction() Fraction
Helper method for converting any super class back to a fraction
inherited
divide(Fraction otherParsed) Fraction
inherited
equalTo(Fraction otherParsed) bool
inherited
greaterThan(Fraction otherParsed) bool
inherited
invert() Fraction
inherited
lessThan(Fraction otherParsed) bool
inherited
multiply(Fraction otherParsed) Fraction
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
quotient() BigInt
inherited
remainder() Fraction
inherited
subtract(Fraction otherParsed) Fraction
inherited
toExact({NumberFormat? format}) String
inherited
toFixed({int? decimalPlaces, NumberFormat? format, RoundingMode rounding = RoundingMode.roundDown}) String
inherited
toFixedNative(int decimalPlaces, {NumberFormat? format, RoundingMode? rounding}) String
inherited
toSignificant({int significantDigits = 6, NumberFormat? format, RoundingMode rounding = RoundingMode.roundDown}) String
inherited
toSignificantNative(int significantDigits, {NumberFormat? format, RoundingMode? rounding}) String
inherited
toString() String
A string representation of this object.
override
tryParseFraction(BigInt fractionish) Fraction
inherited

Operators

operator *(covariant CurrencyAmount other) CurrencyAmount
inherited
operator +(covariant TokenAmount other) TokenAmount
override
operator -(covariant TokenAmount other) TokenAmount
override
operator /(covariant CurrencyAmount other) CurrencyAmount
inherited
operator ==(covariant TokenAmount other) bool
The equality operator.
override