copyWith method

  1. @override
MACDIndicatorConfig copyWith({
  1. int? fastMAPeriod,
  2. int? slowMAPeriod,
  3. int? signalPeriod,
  4. BarStyle? barStyle,
  5. LineStyle? lineStyle,
  6. LineStyle? signalLineStyle,
  7. int? pipSize,
  8. bool? showLastIndicator,
  9. String? title,
  10. 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,
);