SplineSeries<T, D> constructor

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. SelectionBehavior? selectionBehavior,
  25. bool? isVisibleInLegend,
  26. LegendIconType? legendIconType,
  27. SortingOrder? sortingOrder,
  28. String? legendItemText,
  29. double? opacity,
  30. double? animationDelay,
  31. SeriesRendererCreatedCallback? onRendererCreated,
  32. ChartPointInteractionCallback? onPointTap,
  33. ChartPointInteractionCallback? onPointDoubleTap,
  34. ChartPointInteractionCallback? onPointLongPress,
  35. CartesianShaderCallback? onCreateShader,
  36. 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,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    SortingOrder? sortingOrder,
    String? legendItemText,
    double? opacity,
    double? animationDelay,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    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,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          initialSelectedDataIndexes: initialSelectedDataIndexes);