SplineSeries<T, D> constructor

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

Creating an argument constructor of SplineSeries class.

Implementation

const SplineSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  double width = 2,
  super.markerSettings,
  this.splineType = SplineType.natural,
  this.cardinalSplineTension = 0.5,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.trendlines,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.dashArray,
  super.animationDuration,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.sortingOrder,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.initialSelectedDataIndexes,
}) : super(borderWidth: width);