copyWith method

TokenBalance copyWith({
  1. String? name,
  2. String? symbol,
  3. String? chainId,
  4. String? address,
  5. double? value,
  6. double? price,
  7. Quantity? quantity,
  8. String? iconUrl,
})

Implementation

TokenBalance copyWith({
  String? name,
  String? symbol,
  String? chainId,
  String? address,
  double? value,
  double? price,
  Quantity? quantity,
  String? iconUrl,
}) {
  return TokenBalance(
    name: name ?? this.name,
    symbol: symbol ?? this.symbol,
    chainId: chainId ?? this.chainId,
    address: address ?? this.address,
    value: value ?? this.value,
    price: price ?? this.price,
    quantity: quantity ?? this.quantity,
    iconUrl: iconUrl ?? this.iconUrl,
  );
}