WaterfallSeries<T, D> constructor Null safety

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 = const BorderRadius.all(Radius.zero),
  28. bool? enableTooltip,
  29. double? animationDuration,
  30. Color? borderColor,
  31. List<Trendline>? trendlines,
  32. double? borderWidth,
  33. SelectionSettings? selectionSettings,
  34. SelectionBehavior? selectionBehavior,
  35. bool? isVisibleInLegend,
  36. LegendIconType? legendIconType,
  37. String? legendItemText,
  38. double? opacity,
  39. List<double>? dashArray,
  40. SeriesRendererCreatedCallback? onRendererCreated,
  41. 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 = const BorderRadius.all(Radius.zero),
    bool? enableTooltip,
    double? animationDuration,
    Color? borderColor,
    List<Trendline>? trendlines,
    double? borderWidth,
    // ignore: deprecated_member_use_from_same_package
    SelectionSettings? selectionSettings,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    double? opacity,
    List<double>? dashArray,
    SeriesRendererCreatedCallback? onRendererCreated,
    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,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          dashArray: dashArray,
          onRendererCreated: onRendererCreated,
          initialSelectedDataIndexes: initialSelectedDataIndexes);