copyWith method

DrawingPoint copyWith({
  1. int? candleIndex,
  2. double? price,
  3. DateTime? timestamp,
})

Implementation

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