copyWith method

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

Implementation

InvestmentsTransactionsOverride copyWith(
    {DateTime? date,
    String? name,
    double? quantity,
    double? price,
    double? fees,
    String? type,
    String? currency,
    SecurityOverride? security}) {
  return InvestmentsTransactionsOverride(
      date: date ?? this.date,
      name: name ?? this.name,
      quantity: quantity ?? this.quantity,
      price: price ?? this.price,
      fees: fees ?? this.fees,
      type: type ?? this.type,
      currency: currency ?? this.currency,
      security: security ?? this.security);
}