copyWith method

  1. @override
AroonIndicatorConfig copyWith({
  1. int? period,
  2. LineStyle? upLineStyle,
  3. LineStyle? downLineStyle,
  4. int? pipSize,
  5. bool? showLastIndicator,
  6. String? title,
  7. int? number,
})
override

Creates a copy of this instance with given parameters.

Implementation

@override
AroonIndicatorConfig copyWith({
  int? period,
  LineStyle? upLineStyle,
  LineStyle? downLineStyle,
  int? pipSize,
  bool? showLastIndicator,
  String? title,
  int? number,
}) => AroonIndicatorConfig(
  period: period ?? this.period,
  upLineStyle: upLineStyle ?? this.upLineStyle,
  downLineStyle: downLineStyle ?? this.downLineStyle,
  pipSize: pipSize ?? this.pipSize,
  showLastIndicator: showLastIndicator ?? this.showLastIndicator,
  title: title ?? this.title,
  number: number ?? this.number,
);