SplineRangeAreaSeries<T, D> constructor

const SplineRangeAreaSeries<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>? highValueMapper,
  6. required ChartValueMapper<T, num>? lowValueMapper,
  7. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. SortingOrder sortingOrder = SortingOrder.none,
  10. String? xAxisName,
  11. String? yAxisName,
  12. String? name,
  13. Color? color,
  14. MarkerSettings markerSettings = const MarkerSettings(),
  15. SplineType splineType = SplineType.natural,
  16. List<Trendline>? trendlines,
  17. double cardinalSplineTension = 0.5,
  18. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  19. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  20. bool initialIsVisible = true,
  21. bool enableTooltip = true,
  22. bool enableTrackball = true,
  23. List<double>? dashArray,
  24. double animationDuration = 1500,
  25. Color borderColor = Colors.transparent,
  26. double borderWidth = 2.0,
  27. LinearGradient? gradient,
  28. LinearGradient? borderGradient,
  29. SelectionBehavior? selectionBehavior,
  30. bool isVisibleInLegend = true,
  31. LegendIconType legendIconType = LegendIconType.seriesType,
  32. String? legendItemText,
  33. double opacity = 1.0,
  34. double animationDelay = 0,
  35. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  36. ChartPointInteractionCallback? onPointTap,
  37. ChartPointInteractionCallback? onPointDoubleTap,
  38. ChartPointInteractionCallback? onPointLongPress,
  39. CartesianShaderCallback? onCreateShader,
  40. RangeAreaBorderMode borderDrawMode = RangeAreaBorderMode.all,
})

Creating an argument constructor of SplineRangeAreaSeries class.

Implementation

const SplineRangeAreaSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.highValueMapper,
  required super.lowValueMapper,
  super.sortFieldValueMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  super.markerSettings,
  this.splineType = SplineType.natural,
  super.trendlines,
  this.cardinalSplineTension = 0.5,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.dashArray,
  super.animationDuration,
  super.borderColor = Colors.transparent,
  super.borderWidth,
  super.gradient,
  super.borderGradient,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  this.borderDrawMode = RangeAreaBorderMode.all,
});