copyWith method
InvestmentTransaction
copyWith({
- String? investmentTransactionId,
- String? cancelTransactionId,
- String? accountId,
- String? securityId,
- DateTime? date,
- String? name,
- double? quantity,
- double? amount,
- double? price,
- double? fees,
- InvestmentTransactionType? type,
- InvestmentTransactionSubtype? subtype,
- String? isoCurrencyCode,
- String? unofficialCurrencyCode,
Implementation
InvestmentTransaction copyWith(
{String? investmentTransactionId,
String? cancelTransactionId,
String? accountId,
String? securityId,
DateTime? 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);
}