copyWith method
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,
);