Amount class
- Annotations
-
- @freezed
Constructors
- Amount({required BigInt raw, required TokenInfo tokenInfo})
-
factory
-
Amount.fromJson(Map<
String, dynamic> json) -
factory
- Amount.raw(BigInt raw, {required TokenInfo tokenInfo})
-
factory
- Amount.value(Decimal value, {required TokenInfo tokenInfo})
-
factory
Properties
-
copyWith
→ $AmountCopyWith<
Amount> -
no setterinherited
- decimals → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- raw → BigInt
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbolLabel → String
-
no setter
- token → Token
-
no setter
- tokenId → TokenId
-
no setter
- tokenInfo → TokenInfo
-
no setterinherited
- tokenSymbol → String
-
no setter
- value → Decimal
-
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited