MacdIndicator<T, D> constructor

MacdIndicator<T, D>({
  1. bool? isVisible,
  2. String? xAxisName,
  3. String? yAxisName,
  4. String? seriesName,
  5. List<double>? dashArray,
  6. double? animationDuration,
  7. List<T>? dataSource,
  8. ChartValueMapper<T, D>? xValueMapper,
  9. ChartValueMapper<T, num>? closeValueMapper,
  10. String? name,
  11. bool? isVisibleInLegend,
  12. LegendIconType? legendIconType,
  13. String? legendItemText,
  14. Color? signalLineColor,
  15. double? signalLineWidth,
  16. int? period,
  17. int shortPeriod = 12,
  18. int longPeriod = 26,
  19. Color macdLineColor = Colors.orange,
  20. double macdLineWidth = 2,
  21. MacdType macdType = MacdType.both,
  22. Color histogramPositiveColor = Colors.green,
  23. Color histogramNegativeColor = Colors.red,
})

Creating an argument constructor of MacdIndicator class.

Implementation

MacdIndicator(
    {bool? isVisible,
    String? xAxisName,
    String? yAxisName,
    String? seriesName,
    List<double>? dashArray,
    double? animationDuration,
    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.shortPeriod = 12,
    this.longPeriod = 26,
    this.macdLineColor = Colors.orange,
    this.macdLineWidth = 2,
    this.macdType = MacdType.both,
    this.histogramPositiveColor = Colors.green,
    this.histogramNegativeColor = Colors.red})
    : super(
          isVisible: isVisible,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          seriesName: seriesName,
          dashArray: dashArray,
          animationDuration: animationDuration,
          dataSource: dataSource,
          xValueMapper: xValueMapper,
          closeValueMapper: closeValueMapper,
          name: name,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          legendItemText: legendItemText,
          signalLineColor: signalLineColor,
          signalLineWidth: signalLineWidth,
          period: period);