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. SelectionBehavior? selectionBehavior,
  26. bool? isVisibleInLegend,
  27. LegendIconType? legendIconType,
  28. String? legendItemText,
  29. List<double>? dashArray,
  30. double? opacity,
  31. double? animationDelay,
  32. SeriesRendererCreatedCallback? onRendererCreated,
  33. ChartPointInteractionCallback? onPointTap,
  34. ChartPointInteractionCallback? onPointDoubleTap,
  35. ChartPointInteractionCallback? onPointLongPress,
  36. CartesianShaderCallback? onCreateShader,
  37. List<Trendline>? trendlines,
  38. BoxPlotMode boxPlotMode = BoxPlotMode.normal,
  39. 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,
    SelectionBehavior? selectionBehavior,
    bool? isVisibleInLegend,
    LegendIconType? legendIconType,
    String? legendItemText,
    List<double>? dashArray,
    double? opacity,
    double? animationDelay,
    SeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    CartesianShaderCallback? onCreateShader,
    List<Trendline>? trendlines,
    this.boxPlotMode = BoxPlotMode.normal,
    this.showMean = true})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          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,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          trendlines: trendlines);