copyWithWrapped method
Holding
copyWithWrapped({
- Wrapped<
String> ? accountId, - Wrapped<
String> ? securityId, - Wrapped<
double> ? institutionPrice, - Wrapped<
DateTime?> ? institutionPriceAsOf, - Wrapped<
DateTime?> ? institutionPriceDatetime, - Wrapped<
double> ? institutionValue, - Wrapped<
double?> ? costBasis, - Wrapped<
double> ? quantity, - Wrapped<
String?> ? isoCurrencyCode, - Wrapped<
String?> ? unofficialCurrencyCode,
Implementation
Holding copyWithWrapped(
{Wrapped<String>? accountId,
Wrapped<String>? securityId,
Wrapped<double>? institutionPrice,
Wrapped<DateTime?>? institutionPriceAsOf,
Wrapped<DateTime?>? institutionPriceDatetime,
Wrapped<double>? institutionValue,
Wrapped<double?>? costBasis,
Wrapped<double>? quantity,
Wrapped<String?>? isoCurrencyCode,
Wrapped<String?>? unofficialCurrencyCode}) {
return Holding(
accountId: (accountId != null ? accountId.value : this.accountId),
securityId: (securityId != null ? securityId.value : this.securityId),
institutionPrice: (institutionPrice != null
? institutionPrice.value
: this.institutionPrice),
institutionPriceAsOf: (institutionPriceAsOf != null
? institutionPriceAsOf.value
: this.institutionPriceAsOf),
institutionPriceDatetime: (institutionPriceDatetime != null
? institutionPriceDatetime.value
: this.institutionPriceDatetime),
institutionValue: (institutionValue != null
? institutionValue.value
: this.institutionValue),
costBasis: (costBasis != null ? costBasis.value : this.costBasis),
quantity: (quantity != null ? quantity.value : this.quantity),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
unofficialCurrencyCode: (unofficialCurrencyCode != null
? unofficialCurrencyCode.value
: this.unofficialCurrencyCode));
}