StochasticIndicator<T, D> constructor

StochasticIndicator<T, D>({
  1. bool? isVisible,
  2. String? xAxisName,
  3. String? yAxisName,
  4. String? seriesName,
  5. List<double>? dashArray,
  6. double? animationDuration,
  7. double? animationDelay,
  8. List<T>? dataSource,
  9. ChartValueMapper<T, D>? xValueMapper,
  10. ChartValueMapper<T, num>? highValueMapper,
  11. ChartValueMapper<T, num>? lowValueMapper,
  12. ChartValueMapper<T, num>? openValueMapper,
  13. ChartValueMapper<T, num>? closeValueMapper,
  14. String? name,
  15. bool? isVisibleInLegend,
  16. LegendIconType? legendIconType,
  17. String? legendItemText,
  18. Color? signalLineColor,
  19. double? signalLineWidth,
  20. int? period,
  21. bool showZones = true,
  22. double overbought = 80,
  23. double oversold = 20,
  24. Color upperLineColor = Colors.red,
  25. double upperLineWidth = 2,
  26. Color lowerLineColor = Colors.green,
  27. double lowerLineWidth = 2,
  28. Color periodLineColor = Colors.yellow,
  29. double periodLineWidth = 2,
  30. num kPeriod = 3,
  31. num dPeriod = 5,
  32. ChartIndicatorRenderCallback? onRenderDetailsUpdate,
})

Creating an argument constructor of StochasticIndicator class.

Implementation

StochasticIndicator(
    {bool? isVisible,
    String? xAxisName,
    String? yAxisName,
    String? seriesName,
    List<double>? dashArray,
    double? animationDuration,
    double? animationDelay,
    List<T>? dataSource,
    ChartValueMapper<T, D>? xValueMapper,
    ChartValueMapper<T, num>? highValueMapper,
    ChartValueMapper<T, num>? lowValueMapper,
    ChartValueMapper<T, num>? openValueMapper,
    ChartValueMapper<T, num>? closeValueMapper,
    String? name,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    Color? signalLineColor,
    double? signalLineWidth,
    int? period,
    this.showZones = true,
    this.overbought = 80,
    this.oversold = 20,
    this.upperLineColor = Colors.red,
    this.upperLineWidth = 2,
    this.lowerLineColor = Colors.green,
    this.lowerLineWidth = 2,
    this.periodLineColor = Colors.yellow,
    this.periodLineWidth = 2,
    this.kPeriod = 3,
    this.dPeriod = 5,
    ChartIndicatorRenderCallback? onRenderDetailsUpdate})
    : super(
          isVisible: isVisible,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          seriesName: seriesName,
          dashArray: dashArray,
          animationDuration: animationDuration,
          animationDelay: animationDelay,
          dataSource: dataSource,
          xValueMapper: xValueMapper,
          highValueMapper: highValueMapper,
          lowValueMapper: lowValueMapper,
          openValueMapper: openValueMapper,
          closeValueMapper: closeValueMapper,
          name: name,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          legendItemText: legendItemText,
          signalLineColor: signalLineColor,
          signalLineWidth: signalLineWidth,
          period: period,
          onRenderDetailsUpdate: onRenderDetailsUpdate);