WaterfallSeries<T, D> constructor

WaterfallSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. required 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,
  15. WaterfallConnectorLineSettings connectorLineSettings = const WaterfallConnectorLineSettings(),
  16. String? xAxisName,
  17. String? yAxisName,
  18. String? name,
  19. Color? color,
  20. double? width,
  21. double spacing = 0,
  22. MarkerSettings? markerSettings,
  23. DataLabelSettings? dataLabelSettings,
  24. bool? isVisible,
  25. LinearGradient? gradient,
  26. LinearGradient? borderGradient,
  27. BorderRadius borderRadius = BorderRadius.zero,
  28. bool? enableTooltip,
  29. double? animationDuration,
  30. Color? borderColor,
  31. List<Trendline>? trendlines,
  32. double? borderWidth,
  33. SelectionBehavior? selectionBehavior,
  34. bool? isVisibleInLegend,
  35. LegendIconType? legendIconType,
  36. String? legendItemText,
  37. double? opacity,
  38. double? animationDelay,
  39. List<double>? dashArray,
  40. SeriesRendererCreatedCallback? onRendererCreated,
  41. ChartPointInteractionCallback? onPointTap,
  42. ChartPointInteractionCallback? onPointDoubleTap,
  43. ChartPointInteractionCallback? onPointLongPress,
  44. CartesianShaderCallback? onCreateShader,
  45. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of WaterfallSeries class.

Implementation

WaterfallSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    required List<T> dataSource,
    required ChartValueMapper<T, D> xValueMapper,
    required ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, bool>? intermediateSumPredicate,
    ChartValueMapper<T, bool>? totalSumPredicate,
    this.negativePointsColor,
    this.intermediateSumColor,
    this.totalSumColor,
    ChartValueMapper<T, dynamic>? sortFieldValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    SortingOrder? sortingOrder,
    this.connectorLineSettings = const WaterfallConnectorLineSettings(),
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    double? width,
    this.spacing = 0,
    MarkerSettings? markerSettings,
    DataLabelSettings? dataLabelSettings,
    bool? isVisible,
    LinearGradient? gradient,
    LinearGradient? borderGradient,
    this.borderRadius = BorderRadius.zero,
    bool? enableTooltip,
    double? animationDuration,
    Color? borderColor,
    List<Trendline>? trendlines,
    double? borderWidth,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    double? opacity,
    double? animationDelay,
    List<double>? dashArray,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    List<int>? initialSelectedDataIndexes})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          intermediateSumPredicate: intermediateSumPredicate,
          totalSumPredicate: totalSumPredicate,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          trendlines: trendlines,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          color: color,
          width: width ?? 0.7,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          gradient: gradient,
          borderGradient: borderGradient,
          enableTooltip: enableTooltip,
          animationDuration: animationDuration,
          borderColor: borderColor,
          borderWidth: borderWidth,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          dashArray: dashArray,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          initialSelectedDataIndexes: initialSelectedDataIndexes);