BoxAndWhiskerSeries<T, D> constructor

BoxAndWhiskerSeries<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, dynamic> yValueMapper,
  6. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? dataLabelMapper,
  9. SortingOrder? sortingOrder,
  10. String? xAxisName,
  11. String? yAxisName,
  12. String? name,
  13. Color? color,
  14. double? width,
  15. double spacing = 0,
  16. MarkerSettings? markerSettings,
  17. DataLabelSettings? dataLabelSettings,
  18. bool? isVisible,
  19. bool? enableTooltip,
  20. double? animationDuration,
  21. Color? borderColor,
  22. double? borderWidth,
  23. LinearGradient? gradient,
  24. LinearGradient? borderGradient,
  25. SelectionSettings? selectionSettings,
  26. SelectionBehavior? selectionBehavior,
  27. bool? isVisibleInLegend,
  28. LegendIconType? legendIconType,
  29. String? legendItemText,
  30. List<double>? dashArray,
  31. double? opacity,
  32. SeriesRendererCreatedCallback? onRendererCreated,
  33. List<Trendline>? trendlines,
  34. BoxPlotMode boxPlotMode = BoxPlotMode.normal,
  35. bool showMean = true,
})

Creating an argument constructor of BoxAndWhiskerSeries class.

Implementation

BoxAndWhiskerSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    required List<T> dataSource,
    required ChartValueMapper<T, D> xValueMapper,
    required ChartValueMapper<T, dynamic> yValueMapper,
    ChartValueMapper<T, dynamic>? sortFieldValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    SortingOrder? sortingOrder,
    String? xAxisName,
    String? yAxisName,
    String? name,
    Color? color,
    double? width,
    this.spacing = 0,
    MarkerSettings? markerSettings,
    DataLabelSettings? dataLabelSettings,
    bool? isVisible,
    bool? enableTooltip,
    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,
    String? legendItemText,
    List<double>? dashArray,
    double? opacity,
    SeriesRendererCreatedCallback? onRendererCreated,
    List<Trendline>? trendlines,
    this.boxPlotMode = BoxPlotMode.normal,
    this.showMean = true})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          onRendererCreated: onRendererCreated,
          dashArray: dashArray,
          xValueMapper: xValueMapper,
          yValueMapper: yValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          color: color,
          width: width ?? 0.7,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          enableTooltip: enableTooltip,
          animationDuration: animationDuration,
          borderColor: borderColor ?? Colors.black,
          borderWidth: borderWidth ?? 1,
          gradient: gradient,
          borderGradient: borderGradient,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          trendlines: trendlines);