BoxAndWhiskerSeries<T, D> constructor
BoxAndWhiskerSeries<T, D> ({
- 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,
- double spacing = 0,
- MarkerSettings? markerSettings,
- DataLabelSettings? dataLabelSettings,
- bool? isVisible,
- bool? enableTooltip,
- double? animationDuration,
- Color? borderColor,
- double? borderWidth,
- LinearGradient? gradient,
- LinearGradient? borderGradient,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- List<
double> ? dashArray, - double? opacity,
- SeriesRendererCreatedCallback? onRendererCreated,
- List<
Trendline> ? trendlines, - BoxPlotMode boxPlotMode = BoxPlotMode.normal,
- 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);