ChartSeries<T, D> constructor

const ChartSeries<T, D>({
  1. ChartIndexedValueMapper<D>? xValueMapper,
  2. ChartIndexedValueMapper? yValueMapper,
  3. ChartIndexedValueMapper<String>? dataLabelMapper,
  4. String? name,
  5. List<T>? dataSource,
  6. ChartIndexedValueMapper<Color>? pointColorMapper,
  7. ChartIndexedValueMapper? sortFieldValueMapper,
  8. bool? enableTooltip,
  9. EmptyPointSettings? emptyPointSettings,
  10. DataLabelSettings? dataLabelSettings,
  11. double? animationDuration,
  12. Color? borderColor,
  13. double? borderWidth,
  14. SelectionBehavior? selectionBehavior,
  15. String? legendItemText,
  16. LegendIconType? legendIconType,
  17. double? opacity,
  18. SortingOrder? sortingOrder,
  19. double? animationDelay,
  20. bool? isVisible,
})

Creating an argument constructor of ChartSeries class.

Implementation

const ChartSeries(
    {this.xValueMapper,
    this.yValueMapper,
    this.dataLabelMapper,
    this.name,
    this.dataSource,
    this.pointColorMapper,
    this.sortFieldValueMapper,
    bool? enableTooltip,
    this.emptyPointSettings,
    this.dataLabelSettings,
    this.animationDuration,
    this.borderColor,
    this.borderWidth,
    this.selectionBehavior,
    this.legendItemText,
    this.legendIconType,
    this.opacity,
    this.sortingOrder,
    this.animationDelay,
    this.isVisible})
    : enableTooltip = enableTooltip ?? true;