copyWith method

InvestmentTransaction copyWith({
  1. String? investmentTransactionId,
  2. String? cancelTransactionId,
  3. String? accountId,
  4. String? securityId,
  5. String? date,
  6. String? name,
  7. double? quantity,
  8. double? amount,
  9. double? price,
  10. double? fees,
  11. InvestmentTransactionType? type,
  12. InvestmentTransactionSubtype? subtype,
  13. String? isoCurrencyCode,
  14. String? unofficialCurrencyCode,
})

Implementation

InvestmentTransaction copyWith(
    {String? investmentTransactionId,
    String? cancelTransactionId,
    String? accountId,
    String? securityId,
    String? date,
    String? name,
    double? quantity,
    double? amount,
    double? price,
    double? fees,
    enums.InvestmentTransactionType? type,
    enums.InvestmentTransactionSubtype? subtype,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode}) {
  return InvestmentTransaction(
      investmentTransactionId:
          investmentTransactionId ?? this.investmentTransactionId,
      cancelTransactionId: cancelTransactionId ?? this.cancelTransactionId,
      accountId: accountId ?? this.accountId,
      securityId: securityId ?? this.securityId,
      date: date ?? this.date,
      name: name ?? this.name,
      quantity: quantity ?? this.quantity,
      amount: amount ?? this.amount,
      price: price ?? this.price,
      fees: fees ?? this.fees,
      type: type ?? this.type,
      subtype: subtype ?? this.subtype,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}