RangeSeriesBase<T, D> constructor

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

Creating an argument constructor of XyDataSeries class.

Implementation

const RangeSeriesBase({
  super.key,
  this.highValueMapper,
  this.lowValueMapper,
  super.onCreateRenderer,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.xValueMapper,
  super.dataLabelMapper,
  super.name,
  super.dataSource,
  super.xAxisName,
  super.yAxisName,
  super.pointColorMapper,
  super.legendItemText,
  super.sortFieldValueMapper,
  super.gradient,
  super.borderGradient,
  super.trendlines,
  super.markerSettings,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.animationDuration,
  super.dashArray,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.opacity,
  super.animationDelay,
  super.color,
  super.initialSelectedDataIndexes,
  super.sortingOrder,
});