copyWith method
Implementation
ChartAlert copyWith({
String? id,
String? symbol,
double? price,
String? note,
AlertTriggerCondition? condition,
DateTime? createdAt,
bool? isTriggered,
bool? isActive,
DateTime? triggeredAt,
}) {
return ChartAlert(
id: id ?? this.id,
symbol: symbol ?? this.symbol,
price: price ?? this.price,
note: note ?? this.note,
condition: condition ?? this.condition,
createdAt: createdAt ?? this.createdAt,
isTriggered: isTriggered ?? this.isTriggered,
isActive: isActive ?? this.isActive,
triggeredAt: triggeredAt ?? this.triggeredAt,
);
}