StackedAreaSeries<T, D> constructor

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

Creating an argument constructor of StackedAreaSeries class.

Implementation

const StackedAreaSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.xAxisName,
  super.yAxisName,
  super.name,
  this.groupName = '',
  super.trendlines,
  super.color,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.enableTooltip = 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,
});