copyWithWrapped method

InvestmentsTransactionsOverride copyWithWrapped({
  1. Wrapped<DateTime>? date,
  2. Wrapped<String>? name,
  3. Wrapped<double>? quantity,
  4. Wrapped<double>? price,
  5. Wrapped<double?>? fees,
  6. Wrapped<String>? type,
  7. Wrapped<String>? currency,
  8. Wrapped<SecurityOverride?>? security,
})

Implementation

InvestmentsTransactionsOverride copyWithWrapped(
    {Wrapped<DateTime>? date,
    Wrapped<String>? name,
    Wrapped<double>? quantity,
    Wrapped<double>? price,
    Wrapped<double?>? fees,
    Wrapped<String>? type,
    Wrapped<String>? currency,
    Wrapped<SecurityOverride?>? security}) {
  return InvestmentsTransactionsOverride(
      date: (date != null ? date.value : this.date),
      name: (name != null ? name.value : this.name),
      quantity: (quantity != null ? quantity.value : this.quantity),
      price: (price != null ? price.value : this.price),
      fees: (fees != null ? fees.value : this.fees),
      type: (type != null ? type.value : this.type),
      currency: (currency != null ? currency.value : this.currency),
      security: (security != null ? security.value : this.security));
}