copyWith method

Security copyWith({
  1. String? securityId,
  2. String? isin,
  3. String? cusip,
  4. String? sedol,
  5. String? institutionSecurityId,
  6. String? institutionId,
  7. String? proxySecurityId,
  8. String? name,
  9. String? tickerSymbol,
  10. bool? isCashEquivalent,
  11. String? type,
  12. double? closePrice,
  13. DateTime? closePriceAsOf,
  14. DateTime? updateDatetime,
  15. String? isoCurrencyCode,
  16. 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);
}