copyWith method
Holding
copyWith(
{ - String? accountId,
- String? securityId,
- double? institutionPrice,
- DateTime? institutionPriceAsOf,
- DateTime? institutionPriceDatetime,
- double? institutionValue,
- double? costBasis,
- double? quantity,
- String? isoCurrencyCode,
- String? unofficialCurrencyCode,
})
Implementation
Holding copyWith(
{String? accountId,
String? securityId,
double? institutionPrice,
DateTime? institutionPriceAsOf,
DateTime? institutionPriceDatetime,
double? institutionValue,
double? costBasis,
double? quantity,
String? isoCurrencyCode,
String? unofficialCurrencyCode}) {
return Holding(
accountId: accountId ?? this.accountId,
securityId: securityId ?? this.securityId,
institutionPrice: institutionPrice ?? this.institutionPrice,
institutionPriceAsOf: institutionPriceAsOf ?? this.institutionPriceAsOf,
institutionPriceDatetime:
institutionPriceDatetime ?? this.institutionPriceDatetime,
institutionValue: institutionValue ?? this.institutionValue,
costBasis: costBasis ?? this.costBasis,
quantity: quantity ?? this.quantity,
isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
unofficialCurrencyCode:
unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}