SplineAreaSeries<T, D> constructor

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

Creating an argument constructor of SplineAreaSeries class.

Implementation

const SplineAreaSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  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,
  this.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 = BorderDrawMode.top,
});