copyWith method
MACDIndicatorConfig
copyWith({
- int? fastMAPeriod,
- int? slowMAPeriod,
- int? signalPeriod,
- BarStyle? barStyle,
- LineStyle? lineStyle,
- LineStyle? signalLineStyle,
- int? pipSize,
- bool? showLastIndicator,
- String? title,
- int? number,
override
Creates a copy of this instance with given parameters.
Implementation
@override
MACDIndicatorConfig copyWith({
int? fastMAPeriod,
int? slowMAPeriod,
int? signalPeriod,
BarStyle? barStyle,
LineStyle? lineStyle,
LineStyle? signalLineStyle,
int? pipSize,
bool? showLastIndicator,
String? title,
int? number,
}) => MACDIndicatorConfig(
fastMAPeriod: fastMAPeriod ?? this.fastMAPeriod,
slowMAPeriod: slowMAPeriod ?? this.slowMAPeriod,
signalPeriod: signalPeriod ?? this.signalPeriod,
barStyle: barStyle ?? this.barStyle,
lineStyle: lineStyle ?? this.lineStyle,
signalLineStyle: signalLineStyle ?? this.signalLineStyle,
pipSize: pipSize ?? this.pipSize,
showLastIndicator: showLastIndicator ?? this.showLastIndicator,
title: title ?? this.title,
number: number ?? this.number,
);