HiloOpenCloseSeries<T, D> constructor

const HiloOpenCloseSeries<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, num>? volumeValueMapper,
  10. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  11. ChartValueMapper<T, Color>? pointColorMapper,
  12. ChartValueMapper<T, String>? dataLabelMapper,
  13. SortingOrder sortingOrder = SortingOrder.none,
  14. String? xAxisName,
  15. String? yAxisName,
  16. String? name,
  17. Color bearColor = Colors.red,
  18. Color bullColor = Colors.green,
  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. double spacing = 0,
  34. List<int>? initialSelectedDataIndexes,
  35. bool showIndicationForSameValues = false,
  36. List<Trendline>? trendlines,
  37. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  38. ChartPointInteractionCallback? onPointTap,
  39. ChartPointInteractionCallback? onPointDoubleTap,
  40. ChartPointInteractionCallback? onPointLongPress,
  41. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of HiloOpenCloseSeries class.

Implementation

const HiloOpenCloseSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.lowValueMapper,
  required super.highValueMapper,
  required super.openValueMapper,
  required super.closeValueMapper,
  super.volumeValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.bearColor,
  super.bullColor,
  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.spacing = 0,
  super.initialSelectedDataIndexes,
  super.showIndicationForSameValues = false,
  super.trendlines,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});