FastLineSeries<T, D> constructor

const FastLineSeries<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, String>? dataLabelMapper,
  8. String? xAxisName,
  9. String? yAxisName,
  10. Color? color,
  11. double width = 2,
  12. List<double>? dashArray,
  13. LinearGradient? gradient,
  14. MarkerSettings markerSettings = const MarkerSettings(),
  15. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  16. List<Trendline>? trendlines,
  17. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  18. SortingOrder sortingOrder = SortingOrder.none,
  19. bool initialIsVisible = true,
  20. String? name,
  21. bool enableTooltip = true,
  22. double animationDuration = 1500,
  23. SelectionBehavior? selectionBehavior,
  24. bool isVisibleInLegend = true,
  25. LegendIconType legendIconType = LegendIconType.seriesType,
  26. String? legendItemText,
  27. double opacity = 1.0,
  28. double animationDelay = 0,
  29. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  30. ChartPointInteractionCallback? onPointTap,
  31. ChartPointInteractionCallback? onPointDoubleTap,
  32. ChartPointInteractionCallback? onPointLongPress,
  33. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of FastLineSeries class.

Implementation

const FastLineSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.dataLabelMapper,
  super.xAxisName,
  super.yAxisName,
  super.color,
  double width = 2,
  super.dashArray,
  super.gradient,
  super.markerSettings,
  super.emptyPointSettings,
  super.trendlines,
  super.dataLabelSettings,
  super.sortingOrder,
  super.initialIsVisible,
  super.name,
  super.enableTooltip = true,
  super.animationDuration,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
}) : super(borderWidth: width);