ScatterSeries<T, D> constructor

ScatterSeries<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. MarkerSettings? markerSettings,
  14. EmptyPointSettings? emptyPointSettings,
  15. bool? isVisible,
  16. DataLabelSettings? dataLabelSettings,
  17. bool? enableTooltip,
  18. List<Trendline>? trendlines,
  19. double? animationDuration,
  20. Color? borderColor,
  21. double? borderWidth,
  22. LinearGradient? gradient,
  23. LinearGradient? borderGradient,
  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 ScatterSeries class.

Implementation

ScatterSeries(
    {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,
    MarkerSettings? markerSettings,
    EmptyPointSettings? emptyPointSettings,
    bool? isVisible,
    DataLabelSettings? dataLabelSettings,
    bool? enableTooltip,
    List<Trendline>? trendlines,
    double? animationDuration,
    Color? borderColor,
    double? borderWidth,
    LinearGradient? gradient,
    LinearGradient? borderGradient,
    // 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,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          isVisible: isVisible,
          animationDuration: animationDuration,
          borderColor: borderColor,
          borderWidth: borderWidth,
          trendlines: trendlines,
          gradient: gradient,
          borderGradient: borderGradient,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          onRendererCreated: onRendererCreated,
          initialSelectedDataIndexes: initialSelectedDataIndexes);