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. 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. double spacing = 0,
  33. List<int>? initialSelectedDataIndexes,
  34. bool showIndicationForSameValues = false,
  35. List<Trendline>? trendlines,
  36. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  37. ChartPointInteractionCallback? onPointTap,
  38. ChartPointInteractionCallback? onPointDoubleTap,
  39. ChartPointInteractionCallback? onPointLongPress,
  40. 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.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,
});