CustomUnitBalance class
Exact canonical and custom-unit balances returned by a token contract.
- Annotations
-
- @immutable
Constructors
- CustomUnitBalance({required BigInt canonicalAmount, required BigInt unitAmount, required String unit})
-
const
Properties
- approximateMultiplier → double?
-
Convenience approximation of the current multiplier.
no setter
- canonicalAmount → BigInt
-
Result of the canonical
balanceOf(address)call.final - hashCode → int
-
The hash code for this object.
no setterinherited
- multiplierDenominator → BigInt
-
Exact multiplier denominator.
no setter
- multiplierNumerator → BigInt
-
Exact multiplier numerator. The multiplier is this value divided by
multiplierDenominator.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unit → String
-
Unit used for unitAmount.
final
- unitAmount → BigInt
-
Result of
balanceOfUnit(address, unit).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