copyWith method
Security
copyWith({
- String? securityId,
- String? isin,
- String? cusip,
- String? sedol,
- String? institutionSecurityId,
- String? institutionId,
- String? proxySecurityId,
- String? name,
- String? tickerSymbol,
- bool? isCashEquivalent,
- String? type,
- double? closePrice,
- DateTime? closePriceAsOf,
- DateTime? updateDatetime,
- String? isoCurrencyCode,
- String? unofficialCurrencyCode,
Implementation
Security copyWith(
{String? securityId,
String? isin,
String? cusip,
String? sedol,
String? institutionSecurityId,
String? institutionId,
String? proxySecurityId,
String? name,
String? tickerSymbol,
bool? isCashEquivalent,
String? type,
double? closePrice,
DateTime? closePriceAsOf,
DateTime? updateDatetime,
String? isoCurrencyCode,
String? unofficialCurrencyCode}) {
return Security(
securityId: securityId ?? this.securityId,
isin: isin ?? this.isin,
cusip: cusip ?? this.cusip,
sedol: sedol ?? this.sedol,
institutionSecurityId:
institutionSecurityId ?? this.institutionSecurityId,
institutionId: institutionId ?? this.institutionId,
proxySecurityId: proxySecurityId ?? this.proxySecurityId,
name: name ?? this.name,
tickerSymbol: tickerSymbol ?? this.tickerSymbol,
isCashEquivalent: isCashEquivalent ?? this.isCashEquivalent,
type: type ?? this.type,
closePrice: closePrice ?? this.closePrice,
closePriceAsOf: closePriceAsOf ?? this.closePriceAsOf,
updateDatetime: updateDatetime ?? this.updateDatetime,
isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
unofficialCurrencyCode:
unofficialCurrencyCode ?? this.unofficialCurrencyCode);
}