copyWith method

AssetInfoSchema copyWith({
  1. String? balance,
  2. bool? blacklisted,
  3. bool? community,
  4. String? contractAddress,
  5. int? decimals,
  6. bool? defaultSymbol,
  7. bool? deprecated,
  8. String? dexPriceUsd,
  9. String? dexUsdPrice,
  10. String? displayName,
  11. String? imageUrl,
  12. AssetKindSchema? kind,
  13. int? priority,
  14. String? symbol,
  15. List<String>? tags,
  16. bool? taxable,
  17. String? thirdPartyPriceUsd,
  18. String? thirdPartyUsdPrice,
  19. String? walletAddress,
})

Implementation

AssetInfoSchema copyWith(
    {String? balance,
    bool? blacklisted,
    bool? community,
    String? contractAddress,
    int? decimals,
    bool? defaultSymbol,
    bool? deprecated,
    String? dexPriceUsd,
    String? dexUsdPrice,
    String? displayName,
    String? imageUrl,
    enums.AssetKindSchema? kind,
    int? priority,
    String? symbol,
    List<String>? tags,
    bool? taxable,
    String? thirdPartyPriceUsd,
    String? thirdPartyUsdPrice,
    String? walletAddress}) {
  return AssetInfoSchema(
      balance: balance ?? this.balance,
      blacklisted: blacklisted ?? this.blacklisted,
      community: community ?? this.community,
      contractAddress: contractAddress ?? this.contractAddress,
      decimals: decimals ?? this.decimals,
      defaultSymbol: defaultSymbol ?? this.defaultSymbol,
      deprecated: deprecated ?? this.deprecated,
      dexPriceUsd: dexPriceUsd ?? this.dexPriceUsd,
      dexUsdPrice: dexUsdPrice ?? this.dexUsdPrice,
      displayName: displayName ?? this.displayName,
      imageUrl: imageUrl ?? this.imageUrl,
      kind: kind ?? this.kind,
      priority: priority ?? this.priority,
      symbol: symbol ?? this.symbol,
      tags: tags ?? this.tags,
      taxable: taxable ?? this.taxable,
      thirdPartyPriceUsd: thirdPartyPriceUsd ?? this.thirdPartyPriceUsd,
      thirdPartyUsdPrice: thirdPartyUsdPrice ?? this.thirdPartyUsdPrice,
      walletAddress: walletAddress ?? this.walletAddress);
}