copyWith method

Holding copyWith({
  1. String? assetId,
  2. String? symbol,
  3. String? name,
  4. AssetClass? assetClass,
  5. Decimal? quantity,
  6. Money? currentValue,
  7. Money? gainLoss,
  8. double? gainLossPercent,
  9. String? logoUrl,
})

Implementation

Holding copyWith({
  String? assetId,
  String? symbol,
  String? name,
  AssetClass? assetClass,
  Decimal? quantity,
  Money? currentValue,
  Money? gainLoss,
  double? gainLossPercent,
  String? logoUrl,
}) =>
    Holding(
      assetId: assetId ?? this.assetId,
      symbol: symbol ?? this.symbol,
      name: name ?? this.name,
      assetClass: assetClass ?? this.assetClass,
      quantity: quantity ?? this.quantity,
      currentValue: currentValue ?? this.currentValue,
      gainLoss: gainLoss ?? this.gainLoss,
      gainLossPercent: gainLossPercent ?? this.gainLossPercent,
      logoUrl: logoUrl ?? this.logoUrl,
    );