copyWith method

  1. @override
SMIIndicatorConfig copyWith({
  1. int? period,
  2. int? smoothingPeriod,
  3. int? doubleSmoothingPeriod,
  4. int? signalPeriod,
  5. MovingAverageType? maType,
  6. OscillatorLinesConfig? smiOscillatorLimits,
  7. bool? showZones,
  8. LineStyle? lineStyle,
  9. LineStyle? signalLineStyle,
  10. int? pipSize,
  11. bool? showLastIndicator,
  12. String? title,
  13. int? number,
})
override

Creates a copy of this instance with given parameters.

Implementation

@override
SMIIndicatorConfig copyWith({
  int? period,
  int? smoothingPeriod,
  int? doubleSmoothingPeriod,
  int? signalPeriod,
  MovingAverageType? maType,
  OscillatorLinesConfig? smiOscillatorLimits,
  bool? showZones,
  LineStyle? lineStyle,
  LineStyle? signalLineStyle,
  int? pipSize,
  bool? showLastIndicator,
  String? title,
  int? number,
}) => SMIIndicatorConfig(
  period: period ?? this.period,
  smoothingPeriod: smoothingPeriod ?? this.smoothingPeriod,
  doubleSmoothingPeriod: doubleSmoothingPeriod ?? this.doubleSmoothingPeriod,
  signalPeriod: signalPeriod ?? this.signalPeriod,
  maType: maType ?? this.maType,
  smiOscillatorLimits: smiOscillatorLimits ?? this.smiOscillatorLimits,
  showZones: showZones ?? this.showZones,
  lineStyle: lineStyle ?? this.lineStyle,
  signalLineStyle: signalLineStyle ?? this.signalLineStyle,
  pipSize: pipSize ?? this.pipSize,
  showLastIndicator: showLastIndicator ?? this.showLastIndicator,
  title: title ?? this.title,
  number: number ?? this.number,
);