BollingerBandIndicator<T, D> constructor

BollingerBandIndicator<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>? closeValueMapper,
  11. String? name,
  12. bool? isVisibleInLegend,
  13. LegendIconType? legendIconType,
  14. String? legendItemText,
  15. Color? signalLineColor,
  16. double? signalLineWidth,
  17. int? period,
  18. int standardDeviation = 2,
  19. Color upperLineColor = Colors.red,
  20. double upperLineWidth = 2,
  21. Color lowerLineColor = Colors.green,
  22. double lowerLineWidth = 2,
  23. Color bandColor = const Color(0x409e9e9e),
  24. ChartIndicatorRenderCallback? onRenderDetailsUpdate}
)

Creating an argument constructor of BollingerBandIndicator class.

Implementation

BollingerBandIndicator(
    {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>? closeValueMapper,
    String? name,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    Color? signalLineColor,
    double? signalLineWidth,
    int? period,
    this.standardDeviation = 2,
    this.upperLineColor = Colors.red,
    this.upperLineWidth = 2,
    this.lowerLineColor = Colors.green,
    this.lowerLineWidth = 2,
    this.bandColor = const Color(0x409e9e9e),
    ChartIndicatorRenderCallback? onRenderDetailsUpdate})
    : super(
          isVisible: isVisible,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          seriesName: seriesName,
          dashArray: dashArray,
          animationDuration: animationDuration,
          animationDelay: animationDelay,
          dataSource: dataSource,
          xValueMapper: xValueMapper,
          closeValueMapper: closeValueMapper,
          name: name,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          legendItemText: legendItemText,
          signalLineColor: signalLineColor,
          signalLineWidth: signalLineWidth,
          period: period,
          onRenderDetailsUpdate: onRenderDetailsUpdate);