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. bool enableTrackball = true,
  11. double animationDuration = 1500,
  12. Color? color,
  13. double borderWidth = 2.0,
  14. bool isVisibleInLegend = true,
  15. LegendIconType legendIconType = LegendIconType.seriesType,
  16. String? legendItemText,
  17. double opacity = 1.0,
  18. double animationDelay = 0,
  19. bool initialIsVisible = true,
  20. SelectionBehavior? selectionBehavior,
  21. List<int>? initialSelectedDataIndexes,
  22. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  23. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  24. MarkerSettings markerSettings = const MarkerSettings(),
  25. ChartPointInteractionCallback? onPointTap,
  26. ChartPointInteractionCallback? onPointDoubleTap,
  27. 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.enableTrackball = 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);