copyWith method
Implementation
DrawingPoint copyWith({
int? candleIndex,
double? price,
DateTime? timestamp,
}) {
return DrawingPoint(
candleIndex: candleIndex ?? this.candleIndex,
price: price ?? this.price,
timestamp: timestamp ?? this.timestamp,
);
}