copyWithWrapped method

HoldingsOverride copyWithWrapped({
  1. Wrapped<double>? institutionPrice,
  2. Wrapped<DateTime?>? institutionPriceAsOf,
  3. Wrapped<double?>? costBasis,
  4. Wrapped<double>? quantity,
  5. Wrapped<String>? currency,
  6. Wrapped<SecurityOverride>? security,
})

Implementation

HoldingsOverride copyWithWrapped(
    {Wrapped<double>? institutionPrice,
    Wrapped<DateTime?>? institutionPriceAsOf,
    Wrapped<double?>? costBasis,
    Wrapped<double>? quantity,
    Wrapped<String>? currency,
    Wrapped<SecurityOverride>? security}) {
  return HoldingsOverride(
      institutionPrice: (institutionPrice != null
          ? institutionPrice.value
          : this.institutionPrice),
      institutionPriceAsOf: (institutionPriceAsOf != null
          ? institutionPriceAsOf.value
          : this.institutionPriceAsOf),
      costBasis: (costBasis != null ? costBasis.value : this.costBasis),
      quantity: (quantity != null ? quantity.value : this.quantity),
      currency: (currency != null ? currency.value : this.currency),
      security: (security != null ? security.value : this.security));
}