WaterfallSeries<T, D> constructor

const WaterfallSeries<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, bool>? intermediateSumPredicate,
  7. ChartValueMapper<T, bool>? totalSumPredicate,
  8. Color? negativePointsColor,
  9. Color? intermediateSumColor,
  10. Color? totalSumColor,
  11. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  12. ChartValueMapper<T, Color>? pointColorMapper,
  13. ChartValueMapper<T, String>? dataLabelMapper,
  14. SortingOrder sortingOrder = SortingOrder.none,
  15. WaterfallConnectorLineSettings connectorLineSettings = const WaterfallConnectorLineSettings(),
  16. String? xAxisName,
  17. String? yAxisName,
  18. String? name,
  19. Color? color,
  20. double width = 0.7,
  21. double spacing = 0.0,
  22. MarkerSettings markerSettings = const MarkerSettings(),
  23. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  24. bool initialIsVisible = true,
  25. LinearGradient? gradient,
  26. LinearGradient? borderGradient,
  27. BorderRadius borderRadius = BorderRadius.zero,
  28. bool enableTooltip = true,
  29. bool enableTrackball = true,
  30. double animationDuration = 1500,
  31. Color borderColor = Colors.transparent,
  32. List<Trendline>? trendlines,
  33. double borderWidth = 2.0,
  34. SelectionBehavior? selectionBehavior,
  35. bool isVisibleInLegend = true,
  36. LegendIconType legendIconType = LegendIconType.seriesType,
  37. String? legendItemText,
  38. double opacity = 1.0,
  39. double animationDelay = 0,
  40. List<double>? dashArray,
  41. SeriesRendererCreatedCallback<T, D>? onRendererCreated,
  42. ChartPointInteractionCallback? onPointTap,
  43. ChartPointInteractionCallback? onPointDoubleTap,
  44. ChartPointInteractionCallback? onPointLongPress,
  45. CartesianShaderCallback? onCreateShader,
  46. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of WaterfallSeries class.

Implementation

const WaterfallSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  this.intermediateSumPredicate,
  this.totalSumPredicate,
  this.negativePointsColor,
  this.intermediateSumColor,
  this.totalSumColor,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  this.connectorLineSettings = const WaterfallConnectorLineSettings(),
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  this.spacing = 0.0,
  super.markerSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.borderGradient,
  this.borderRadius = BorderRadius.zero,
  super.enableTooltip = true,
  super.enableTrackball = true,
  super.animationDuration,
  this.borderColor = Colors.transparent,
  super.trendlines,
  super.borderWidth,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.opacity,
  super.animationDelay,
  super.dashArray,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.initialSelectedDataIndexes,
});