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. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  26. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  27. double animationDuration = 1500,
  28. List<double>? dashArray,
  29. Color borderColor = Colors.transparent,
  30. double borderWidth = 2.0,
  31. SelectionBehavior? selectionBehavior,
  32. bool isVisibleInLegend = true,
  33. LegendIconType legendIconType = LegendIconType.seriesType,
  34. double opacity = 1.0,
  35. double animationDelay = 0,
  36. Color? color,
  37. List<int>? initialSelectedDataIndexes,
  38. 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.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,
});