copyWith method
AssetInfoSchema
copyWith({
- String? balance,
- bool? blacklisted,
- bool? community,
- String? contractAddress,
- int? decimals,
- bool? defaultSymbol,
- bool? deprecated,
- String? dexPriceUsd,
- String? dexUsdPrice,
- String? displayName,
- String? imageUrl,
- AssetKindSchema? kind,
- int? priority,
- String? symbol,
- List<
String> ? tags, - bool? taxable,
- String? thirdPartyPriceUsd,
- String? thirdPartyUsdPrice,
- 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);
}