copyWithWrapped method

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

Implementation

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