TokenInfo class

token's info. chainId is one of ChainEnv. address is token's mint.

Annotations
  • @JsonSerializable(anyMap: true)

Constructors

TokenInfo({required int chainId, required String address, required String name, required int decimals, required String symbol, String? logoURI, List<String> tags = const <String>[], TokenExtensions? extensions})
TokenInfo.fromJson(Map json)
factory

Properties

address String
getter/setter pair
chainEnv ChainEnv
no setter
chainId int
getter/setter pair
decimals int
getter/setter pair
extensions TokenExtensions?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logoURI String?
getter/setter pair
name String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
getter/setter pair
tags List<String>
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited