WaterfallSeries<T, D> constructor
WaterfallSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - required List<
T> dataSource, - required ChartValueMapper<
T, D> xValueMapper, - required ChartValueMapper<
T, num> yValueMapper, - ChartValueMapper<
T, bool> ? intermediateSumPredicate, - ChartValueMapper<
T, bool> ? totalSumPredicate, - Color? negativePointsColor,
- Color? intermediateSumColor,
- Color? totalSumColor,
- ChartValueMapper<
T, dynamic> ? sortFieldValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - SortingOrder? sortingOrder,
- WaterfallConnectorLineSettings connectorLineSettings = const WaterfallConnectorLineSettings(),
- String? xAxisName,
- String? yAxisName,
- String? name,
- Color? color,
- double? width,
- double spacing = 0,
- MarkerSettings? markerSettings,
- DataLabelSettings? dataLabelSettings,
- bool? isVisible,
- LinearGradient? gradient,
- LinearGradient? borderGradient,
- BorderRadius borderRadius = const BorderRadius.all(Radius.zero),
- bool? enableTooltip,
- double? animationDuration,
- Color? borderColor,
- List<
Trendline> ? trendlines, - double? borderWidth,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- String? legendItemText,
- double? opacity,
- List<
double> ? dashArray, - SeriesRendererCreatedCallback? onRendererCreated,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of WaterfallSeries class.
Implementation
WaterfallSeries(
{ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
required List<T> dataSource,
required ChartValueMapper<T, D> xValueMapper,
required ChartValueMapper<T, num> yValueMapper,
ChartValueMapper<T, bool>? intermediateSumPredicate,
ChartValueMapper<T, bool>? totalSumPredicate,
this.negativePointsColor,
this.intermediateSumColor,
this.totalSumColor,
ChartValueMapper<T, dynamic>? sortFieldValueMapper,
ChartValueMapper<T, Color>? pointColorMapper,
ChartValueMapper<T, String>? dataLabelMapper,
SortingOrder? sortingOrder,
this.connectorLineSettings = const WaterfallConnectorLineSettings(),
String? xAxisName,
String? yAxisName,
String? name,
Color? color,
double? width,
this.spacing = 0,
MarkerSettings? markerSettings,
DataLabelSettings? dataLabelSettings,
bool? isVisible,
LinearGradient? gradient,
LinearGradient? borderGradient,
this.borderRadius = const BorderRadius.all(Radius.zero),
bool? enableTooltip,
double? animationDuration,
Color? borderColor,
List<Trendline>? trendlines,
double? borderWidth,
// ignore: deprecated_member_use_from_same_package
SelectionSettings? selectionSettings,
SelectionBehavior? selectionBehavior,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
String? legendItemText,
double? opacity,
List<double>? dashArray,
SeriesRendererCreatedCallback? onRendererCreated,
List<int>? initialSelectedDataIndexes})
: super(
key: key,
onCreateRenderer: onCreateRenderer,
name: name,
xValueMapper: xValueMapper,
yValueMapper: yValueMapper,
intermediateSumPredicate: intermediateSumPredicate,
totalSumPredicate: totalSumPredicate,
sortFieldValueMapper: sortFieldValueMapper,
pointColorMapper: pointColorMapper,
dataLabelMapper: dataLabelMapper,
dataSource: dataSource,
trendlines: trendlines,
xAxisName: xAxisName,
yAxisName: yAxisName,
color: color,
width: width ?? 0.7,
markerSettings: markerSettings,
dataLabelSettings: dataLabelSettings,
isVisible: isVisible,
gradient: gradient,
borderGradient: borderGradient,
enableTooltip: enableTooltip,
animationDuration: animationDuration,
borderColor: borderColor,
borderWidth: borderWidth,
selectionSettings: selectionSettings,
selectionBehavior: selectionBehavior,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
opacity: opacity,
dashArray: dashArray,
onRendererCreated: onRendererCreated,
initialSelectedDataIndexes: initialSelectedDataIndexes);