copyWithWrapped method
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<
AssetKindSchema> ? kind, - Wrapped<
int> ? priority, - Wrapped<
String> ? symbol, - Wrapped<
List< ? tags,String> > - Wrapped<
bool> ? taxable, - Wrapped<
String?> ? thirdPartyPriceUsd, - Wrapped<
String?> ? thirdPartyUsdPrice, - 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));
}