copyWith method
Implementation
Candle copyWith({
DateTime? timestamp,
double? open,
double? high,
double? low,
double? close,
double? volume,
}) {
return Candle(
timestamp: timestamp ?? this.timestamp,
open: open ?? this.open,
high: high ?? this.high,
low: low ?? this.low,
close: close ?? this.close,
volume: volume ?? this.volume,
);
}