AreaSeries<T, D> constructor

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

Creating an argument constructor of AreaSeries class.

Implementation

const AreaSeries({
  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,
  super.color,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.trendlines,
  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,
  this.borderDrawMode = BorderDrawMode.top,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
});