TechnicalIndicator<T, D> constructor

TechnicalIndicator<T, D>({
  1. bool isVisible = true,
  2. String? xAxisName,
  3. String? yAxisName,
  4. String? seriesName,
  5. List<double> dashArray = const <double>[0, 0],
  6. double animationDuration = 1500,
  7. double animationDelay = 0,
  8. List<T>? dataSource,
  9. ChartIndexedValueMapper<D>? xValueMapper,
  10. ChartIndexedValueMapper<num?>? highValueMapper,
  11. ChartIndexedValueMapper<num?>? lowValueMapper,
  12. ChartIndexedValueMapper<num?>? openValueMapper,
  13. ChartIndexedValueMapper<num?>? closeValueMapper,
  14. ChartIndexedValueMapper<num?>? volumeValueMapper,
  15. String? name,
  16. ChartIndicatorRenderCallback? onRenderDetailsUpdate,
  17. bool isVisibleInLegend = true,
  18. LegendIconType legendIconType = LegendIconType.seriesType,
  19. String? legendItemText,
  20. Color signalLineColor = Colors.blue,
  21. double signalLineWidth = 2,
})

Creating an argument constructor of TechnicalIndicators class.

Implementation

TechnicalIndicator({
  this.isVisible = true,
  this.xAxisName,
  this.yAxisName,
  this.seriesName,
  this.dashArray = const <double>[0, 0],
  this.animationDuration = 1500,
  this.animationDelay = 0,
  this.dataSource,
  this.xValueMapper,
  this.highValueMapper,
  this.lowValueMapper,
  this.openValueMapper,
  this.closeValueMapper,
  this.volumeValueMapper,
  this.name,
  this.onRenderDetailsUpdate,
  this.isVisibleInLegend = true,
  this.legendIconType = LegendIconType.seriesType,
  this.legendItemText,
  this.signalLineColor = Colors.blue,
  this.signalLineWidth = 2,
});