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. bool enableTrackball = true,
  24. double animationDuration = 1500,
  25. double borderWidth = 2,
  26. SelectionBehavior? selectionBehavior,
  27. bool isVisibleInLegend = true,
  28. LegendIconType legendIconType = LegendIconType.seriesType,
  29. String? legendItemText,
  30. List<double>? dashArray,
  31. double opacity = 1.0,
  32. double animationDelay = 0,
  33. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  34. ChartPointInteractionCallback? onPointTap,
  35. ChartPointInteractionCallback? onPointDoubleTap,
  36. ChartPointInteractionCallback? onPointLongPress,
  37. CartesianShaderCallback? onCreateShader,
  38. List<int>? initialSelectedDataIndexes,
  39. bool showIndicationForSameValues = false,
  40. List<Trendline>? trendlines,
  41. BorderRadius borderRadius = BorderRadius.zero,
  42. double width = 0.7,
  43. double spacing = 0,
})

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.enableTrackball = 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,
  this.borderRadius = BorderRadius.zero,
  super.width,
  super.spacing,
});