AccumulationDistributionIndicator<T, D> constructor

AccumulationDistributionIndicator<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>? highValueMapper,
  10. ChartValueMapper<T, num>? lowValueMapper,
  11. ChartValueMapper<T, num>? closeValueMapper,
  12. ChartValueMapper<T, num>? volumeValueMapper,
  13. String? name,
  14. bool? isVisibleInLegend,
  15. LegendIconType? legendIconType,
  16. String? legendItemText,
  17. Color? signalLineColor,
  18. double? signalLineWidth,
})

Creating an argument constructor of AccumulationDistributionIndicator class.

Implementation

AccumulationDistributionIndicator(
    {bool? isVisible,
    String? xAxisName,
    String? yAxisName,
    String? seriesName,
    List<double>? dashArray,
    double? animationDuration,
    List<T>? dataSource,
    ChartValueMapper<T, D>? xValueMapper,
    ChartValueMapper<T, num>? highValueMapper,
    ChartValueMapper<T, num>? lowValueMapper,
    ChartValueMapper<T, num>? closeValueMapper,
    ChartValueMapper<T, num>? volumeValueMapper,
    String? name,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    Color? signalLineColor,
    double? signalLineWidth})
    : volumeValueMapper = (volumeValueMapper != null)
          ? ((int index) => volumeValueMapper(dataSource![index], index))
          : null,
      super(
          isVisible: isVisible,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          seriesName: seriesName,
          dashArray: dashArray,
          animationDuration: animationDuration,
          dataSource: dataSource,
          xValueMapper: xValueMapper,
          highValueMapper: highValueMapper,
          lowValueMapper: lowValueMapper,
          closeValueMapper: closeValueMapper,
          name: name,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          legendItemText: legendItemText,
          signalLineColor: signalLineColor,
          signalLineWidth: signalLineWidth);