copyWith method

AssetInfoSchemaV2 copyWith({
  1. String? balance,
  2. String? contractAddress,
  3. String? dexPriceUsd,
  4. AssetKindSchema? kind,
  5. AssetMetaSchemaV2? meta,
  6. int? pairPriority,
  7. List<String>? tags,
  8. String? walletAddress,
})

Implementation

AssetInfoSchemaV2 copyWith(
    {String? balance,
    String? contractAddress,
    String? dexPriceUsd,
    enums.AssetKindSchema? kind,
    AssetMetaSchemaV2? meta,
    int? pairPriority,
    List<String>? tags,
    String? walletAddress}) {
  return AssetInfoSchemaV2(
      balance: balance ?? this.balance,
      contractAddress: contractAddress ?? this.contractAddress,
      dexPriceUsd: dexPriceUsd ?? this.dexPriceUsd,
      kind: kind ?? this.kind,
      meta: meta ?? this.meta,
      pairPriority: pairPriority ?? this.pairPriority,
      tags: tags ?? this.tags,
      walletAddress: walletAddress ?? this.walletAddress);
}