copyWithWrapped method

PoolStats copyWithWrapped({
  1. Wrapped<String?>? apy,
  2. Wrapped<String>? baseId,
  3. Wrapped<String>? baseLiquidity,
  4. Wrapped<String>? baseName,
  5. Wrapped<String>? baseSymbol,
  6. Wrapped<String>? baseVolume,
  7. Wrapped<String>? lastPrice,
  8. Wrapped<String>? lpPrice,
  9. Wrapped<String>? lpPriceUsd,
  10. Wrapped<String>? poolAddress,
  11. Wrapped<String>? quoteId,
  12. Wrapped<String>? quoteLiquidity,
  13. Wrapped<String>? quoteName,
  14. Wrapped<String>? quoteSymbol,
  15. Wrapped<String>? quoteVolume,
  16. Wrapped<String>? routerAddress,
  17. Wrapped<String>? url,
})

Implementation

PoolStats copyWithWrapped(
    {Wrapped<String?>? apy,
    Wrapped<String>? baseId,
    Wrapped<String>? baseLiquidity,
    Wrapped<String>? baseName,
    Wrapped<String>? baseSymbol,
    Wrapped<String>? baseVolume,
    Wrapped<String>? lastPrice,
    Wrapped<String>? lpPrice,
    Wrapped<String>? lpPriceUsd,
    Wrapped<String>? poolAddress,
    Wrapped<String>? quoteId,
    Wrapped<String>? quoteLiquidity,
    Wrapped<String>? quoteName,
    Wrapped<String>? quoteSymbol,
    Wrapped<String>? quoteVolume,
    Wrapped<String>? routerAddress,
    Wrapped<String>? url}) {
  return PoolStats(
      apy: (apy != null ? apy.value : this.apy),
      baseId: (baseId != null ? baseId.value : this.baseId),
      baseLiquidity:
          (baseLiquidity != null ? baseLiquidity.value : this.baseLiquidity),
      baseName: (baseName != null ? baseName.value : this.baseName),
      baseSymbol: (baseSymbol != null ? baseSymbol.value : this.baseSymbol),
      baseVolume: (baseVolume != null ? baseVolume.value : this.baseVolume),
      lastPrice: (lastPrice != null ? lastPrice.value : this.lastPrice),
      lpPrice: (lpPrice != null ? lpPrice.value : this.lpPrice),
      lpPriceUsd: (lpPriceUsd != null ? lpPriceUsd.value : this.lpPriceUsd),
      poolAddress:
          (poolAddress != null ? poolAddress.value : this.poolAddress),
      quoteId: (quoteId != null ? quoteId.value : this.quoteId),
      quoteLiquidity: (quoteLiquidity != null
          ? quoteLiquidity.value
          : this.quoteLiquidity),
      quoteName: (quoteName != null ? quoteName.value : this.quoteName),
      quoteSymbol:
          (quoteSymbol != null ? quoteSymbol.value : this.quoteSymbol),
      quoteVolume:
          (quoteVolume != null ? quoteVolume.value : this.quoteVolume),
      routerAddress:
          (routerAddress != null ? routerAddress.value : this.routerAddress),
      url: (url != null ? url.value : this.url));
}