copyWithWrapped method

DexStats copyWithWrapped({
  1. Wrapped<int>? trades,
  2. Wrapped<String>? tvl,
  3. Wrapped<int>? uniqueWallets,
  4. Wrapped<String>? volumeUsd,
})

Implementation

DexStats copyWithWrapped(
    {Wrapped<int>? trades,
    Wrapped<String>? tvl,
    Wrapped<int>? uniqueWallets,
    Wrapped<String>? volumeUsd}) {
  return DexStats(
      trades: (trades != null ? trades.value : this.trades),
      tvl: (tvl != null ? tvl.value : this.tvl),
      uniqueWallets:
          (uniqueWallets != null ? uniqueWallets.value : this.uniqueWallets),
      volumeUsd: (volumeUsd != null ? volumeUsd.value : this.volumeUsd));
}