HiloSeries<T, D> constructor

const HiloSeries<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. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  8. ChartValueMapper<T, Color>? pointColorMapper,
  9. ChartValueMapper<T, String>? dataLabelMapper,
  10. SortingOrder sortingOrder = SortingOrder.none,
  11. String? xAxisName,
  12. String? yAxisName,
  13. String? name,
  14. Color? color,
  15. MarkerSettings markerSettings = const MarkerSettings(),
  16. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  17. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  18. bool initialIsVisible = true,
  19. bool enableTooltip = true,
  20. bool enableTrackball = true,
  21. double animationDuration = 1500,
  22. double borderWidth = 2,
  23. SelectionBehavior? selectionBehavior,
  24. bool isVisibleInLegend = true,
  25. LegendIconType legendIconType = LegendIconType.seriesType,
  26. String? legendItemText,
  27. List<double>? dashArray,
  28. double opacity = 1.0,
  29. double animationDelay = 0,
  30. double spacing = 0,
  31. List<int>? initialSelectedDataIndexes,
  32. bool showIndicationForSameValues = false,
  33. List<Trendline>? trendlines,
  34. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  35. ChartPointInteractionCallback? onPointTap,
  36. ChartPointInteractionCallback? onPointDoubleTap,
  37. ChartPointInteractionCallback? onPointLongPress,
  38. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of HiloSeries class.

Implementation

const HiloSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.lowValueMapper,
  required super.highValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.animationDuration,
  super.borderWidth = 2,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.dashArray,
  super.opacity,
  super.animationDelay,
  this.spacing = 0,
  super.initialSelectedDataIndexes,
  this.showIndicationForSameValues = false,
  super.trendlines,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});