AssetAmount class final
A concrete asset-based price.
Represents a fully resolved on-chain payment requirement. The asset identifies the token or contract, and amount is expressed in the asset’s expected format (typically smallest denomination units).
Constructors
-
AssetAmount({required String asset, required String amount, Map<
String, dynamic> ? extra}) -
const
Properties
- amount → String
-
Canonical amount representation.
final
- asset → String
-
Identifier of the asset (e.g. contract address, mint, symbol).
final
-
extra
→ Map<
String, dynamic> ? -
Optional scheme-specific metadata.
final
- 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