SplineSeries<T, D> constructor Null safety

SplineSeries<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, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. String? xAxisName,
  10. String? yAxisName,
  11. String? name,
  12. Color? color,
  13. double? width,
  14. MarkerSettings? markerSettings,
  15. SplineType? splineType,
  16. double cardinalSplineTension = 0.5,
  17. EmptyPointSettings? emptyPointSettings,
  18. DataLabelSettings? dataLabelSettings,
  19. bool? isVisible,
  20. List<Trendline>? trendlines,
  21. bool? enableTooltip,
  22. List<double>? dashArray,
  23. double? animationDuration,
  24. SelectionSettings? selectionSettings,
  25. SelectionBehavior? selectionBehavior,
  26. bool? isVisibleInLegend,
  27. LegendIconType? legendIconType,
  28. SortingOrder? sortingOrder,
  29. String? legendItemText,
  30. double? opacity,
  31. SeriesRendererCreatedCallback? onRendererCreated,
  32. List<int>? initialSelectedDataIndexes}
)

Creating an argument constructor of SplineSeries class.

Implementation

SplineSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    required List<T> dataSource,
    required ChartValueMapper<T, D> xValueMapper,
    required ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, dynamic>? sortFieldValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    double? width,
    MarkerSettings? markerSettings,
    this.splineType,
    this.cardinalSplineTension = 0.5,
    EmptyPointSettings? emptyPointSettings,
    DataLabelSettings? dataLabelSettings,
    bool? isVisible,
    List<Trendline>? trendlines,
    bool? enableTooltip,
    List<double>? dashArray,
    double? animationDuration,
    // ignore: deprecated_member_use_from_same_package
    SelectionSettings? selectionSettings,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    SortingOrder? sortingOrder,
    String? legendItemText,
    double? opacity,
    SeriesRendererCreatedCallback? onRendererCreated,
    List<int>? initialSelectedDataIndexes})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          name: name,
          color: color,
          width: width ?? 2,
          trendlines: trendlines,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          isVisible: isVisible,
          dashArray: dashArray,
          animationDuration: animationDuration,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          onRendererCreated: onRendererCreated,
          initialSelectedDataIndexes: initialSelectedDataIndexes);