CandleSeries<T, D> constructor

const CandleSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. List<T>? dataSource,
  4. required ChartValueMapper<T, D>? xValueMapper,
  5. required ChartValueMapper<T, num>? lowValueMapper,
  6. required ChartValueMapper<T, num>? highValueMapper,
  7. required ChartValueMapper<T, num>? openValueMapper,
  8. required ChartValueMapper<T, num>? closeValueMapper,
  9. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  10. ChartValueMapper<T, Color>? pointColorMapper,
  11. ChartValueMapper<T, String>? dataLabelMapper,
  12. SortingOrder sortingOrder = SortingOrder.none,
  13. String? xAxisName,
  14. String? yAxisName,
  15. String? name,
  16. Color bearColor = Colors.red,
  17. Color bullColor = Colors.green,
  18. bool enableSolidCandles = false,
  19. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  20. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  21. bool initialIsVisible = true,
  22. bool enableTooltip = true,
  23. double animationDuration = 1500,
  24. double borderWidth = 2,
  25. SelectionBehavior? selectionBehavior,
  26. bool isVisibleInLegend = true,
  27. LegendIconType legendIconType = LegendIconType.seriesType,
  28. String? legendItemText,
  29. List<double>? dashArray,
  30. double opacity = 1.0,
  31. double animationDelay = 0,
  32. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  33. ChartPointInteractionCallback? onPointTap,
  34. ChartPointInteractionCallback? onPointDoubleTap,
  35. ChartPointInteractionCallback? onPointLongPress,
  36. CartesianShaderCallback? onCreateShader,
  37. List<int>? initialSelectedDataIndexes,
  38. bool showIndicationForSameValues = false,
  39. List<Trendline>? trendlines,
})

Creating an argument constructor of CandleSeries class.

Implementation

const CandleSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.lowValueMapper,
  required super.highValueMapper,
  required super.openValueMapper,
  required super.closeValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.bearColor,
  super.bullColor,
  super.enableSolidCandles,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.animationDuration,
  super.borderWidth,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.dashArray,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.initialSelectedDataIndexes,
  super.showIndicationForSameValues = false,
  super.trendlines,
});