TokenDetails.miscToken constructor

  1. @Implements<IToken>()
  2. @FreezedUnionValue('misc')
const TokenDetails.miscToken({
  1. required String symbol,
  2. required String logoURI,
  3. required int decimals,
  4. @JsonKey(fromJson: nameFromJson) required String name,
  5. @JsonKey(fromJson: addressFromJson) required String address,
})

Constructs a new MiscToken instance.

Parameters:

  • symbol – The symbol of the miscellaneous token.
  • logoURI – The URI of the miscellaneous token logo.
  • decimals – The number of decimals for the miscellaneous token.
  • name – The name of the miscellaneous token.
  • address – The address of the miscellaneous token.

Implementation

@Implements<IToken>()
@FreezedUnionValue('misc')
const factory TokenDetails.miscToken({
  required String symbol,
  required String logoURI,
  required int decimals,
  @JsonKey(
    fromJson: nameFromJson,
  )
  required String name,
  @JsonKey(
    fromJson: addressFromJson,
  )
  required String address,
}) = MiscToken;