ChartSeries<T, D> constructor

const ChartSeries<T, D>({
  1. ValueKey<String>? key,
  2. List<T>? dataSource,
  3. ChartValueMapper<T, D>? xValueMapper,
  4. ChartValueMapper<T, Color>? pointColorMapper,
  5. SortingOrder sortingOrder = SortingOrder.none,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, String>? dataLabelMapper,
  8. String? name,
  9. bool enableTooltip = true,
  10. double animationDuration = 1500,
  11. Color? color,
  12. double borderWidth = 2.0,
  13. bool isVisibleInLegend = true,
  14. LegendIconType legendIconType = LegendIconType.seriesType,
  15. String? legendItemText,
  16. double opacity = 1.0,
  17. double animationDelay = 0,
  18. bool initialIsVisible = true,
  19. SelectionBehavior? selectionBehavior,
  20. List<int>? initialSelectedDataIndexes,
  21. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  22. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  23. MarkerSettings markerSettings = const MarkerSettings(),
  24. ChartPointInteractionCallback? onPointTap,
  25. ChartPointInteractionCallback? onPointDoubleTap,
  26. ChartPointInteractionCallback? onPointLongPress,
})

Creating an argument constructor of ChartSeries class.

Implementation

const ChartSeries({
  ValueKey<String>? key,
  this.dataSource,
  this.xValueMapper,
  this.pointColorMapper,
  this.sortingOrder = SortingOrder.none,
  this.sortFieldValueMapper,
  this.dataLabelMapper,
  this.name,
  this.enableTooltip = true,
  this.animationDuration = 1500,
  this.color,
  this.borderWidth = 2.0,
  this.isVisibleInLegend = true,
  this.legendIconType = LegendIconType.seriesType,
  this.legendItemText,
  this.opacity = 1.0,
  this.animationDelay = 0,
  this.initialIsVisible = true,
  this.selectionBehavior,
  this.initialSelectedDataIndexes,
  this.emptyPointSettings = const EmptyPointSettings(),
  this.dataLabelSettings = const DataLabelSettings(),
  this.markerSettings = const MarkerSettings(),
  this.onPointTap,
  this.onPointDoubleTap,
  this.onPointLongPress,
}) : super(key: key);