copyWith method

HoldingsOverride copyWith({
  1. double? institutionPrice,
  2. DateTime? institutionPriceAsOf,
  3. double? costBasis,
  4. double? quantity,
  5. String? currency,
  6. SecurityOverride? security,
})

Implementation

HoldingsOverride copyWith(
    {double? institutionPrice,
    DateTime? institutionPriceAsOf,
    double? costBasis,
    double? quantity,
    String? currency,
    SecurityOverride? security}) {
  return HoldingsOverride(
      institutionPrice: institutionPrice ?? this.institutionPrice,
      institutionPriceAsOf: institutionPriceAsOf ?? this.institutionPriceAsOf,
      costBasis: costBasis ?? this.costBasis,
      quantity: quantity ?? this.quantity,
      currency: currency ?? this.currency,
      security: security ?? this.security);
}