Token class
- Annotations
Constructors
-
Token({@HexConverter() required Uint256 balance, @JsonKey(name: 'contract_address') required String contractAddress, @JsonKey(name: 'current_usd_price') required num? currentUsdPrice, required num decimals, required List<
TokenLogo> ? logos, required String name, required String symbol, @BigIntConverter() @JsonKey(name: 'total_supply') required Uint256? totalSupply, required List<TokenUrl> ? urls}) -
constfactory
-
Token.fromJson(Map<
String, dynamic> json) -
factory
Properties
- balance → Uint256
-
read-onlyinherited
- contractAddress → String
-
read-onlyinherited
-
copyWith
→ $TokenCopyWith<
Token> -
read-onlyinherited
- currentUsdPrice → num?
-
read-onlyinherited
- decimals → num
-
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
logos
→ List<
TokenLogo> ? -
read-onlyinherited
- name → String
-
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- symbol → String
-
read-onlyinherited
- totalSupply → Uint256?
-
read-onlyinherited
-
urls
→ List<
TokenUrl> ? -
read-onlyinherited
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