TokenDetails.bridgedToken constructor

  1. @Implements<IToken>()
  2. @FreezedUnionValue('bridged')
const TokenDetails.bridgedToken({
  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 BridgedToken instance.

Parameters:

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

Implementation

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