FunnelSeries<T, D> constructor
FunnelSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - FunnelSeriesRendererCreatedCallback? onRendererCreated,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? yValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartValueMapper<
T, String> ? textFieldMapper, - String? name,
- String? neckWidth,
- String? neckHeight,
- String? height,
- String? width,
- double? gapRatio,
- LegendIconType? legendIconType,
- EmptyPointSettings? emptyPointSettings,
- DataLabelSettings? dataLabelSettings,
- double? animationDuration,
- double? opacity,
- Color? borderColor,
- double? borderWidth,
- bool? explode,
- ActivationMode? explodeGesture,
- String? explodeOffset,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- num? explodeIndex,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of FunnelSeries class.
Implementation
FunnelSeries({
ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
FunnelSeriesRendererCreatedCallback? onRendererCreated,
List<T>? dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? yValueMapper,
ChartValueMapper<T, Color>? pointColorMapper,
ChartValueMapper<T, String>? textFieldMapper,
String? name,
String? neckWidth,
String? neckHeight,
String? height,
String? width,
double? gapRatio,
LegendIconType? legendIconType,
EmptyPointSettings? emptyPointSettings,
DataLabelSettings? dataLabelSettings,
double? animationDuration,
double? opacity,
Color? borderColor,
double? borderWidth,
bool? explode,
ActivationMode? explodeGesture,
String? explodeOffset,
// ignore: deprecated_member_use_from_same_package
SelectionSettings? selectionSettings,
SelectionBehavior? selectionBehavior,
num? explodeIndex,
List<int>? initialSelectedDataIndexes,
}) : super(
key: key,
onCreateRenderer: onCreateRenderer,
onRendererCreated: onRendererCreated,
dataSource: dataSource,
xValueMapper: (int index) =>
xValueMapper!(dataSource![index], index),
yValueMapper: (int index) =>
yValueMapper!(dataSource![index], index),
pointColorMapper: (int index) => pointColorMapper != null
? pointColorMapper(dataSource![index], index)
: null,
textFieldMapper: (int index) => textFieldMapper != null
? textFieldMapper(dataSource![index], index)
: null,
name: name,
neckWidth: neckWidth,
neckHeight: neckHeight,
height: height,
width: width,
gapRatio: gapRatio,
emptyPointSettings: emptyPointSettings,
dataLabelSettings: dataLabelSettings,
legendIconType: legendIconType,
opacity: opacity,
borderColor: borderColor,
borderWidth: borderWidth,
animationDuration: animationDuration,
explode: explode,
explodeIndex: explodeIndex,
explodeGesture: explodeGesture,
explodeOffset: explodeOffset,
selectionSettings: selectionSettings,
selectionBehavior: selectionBehavior,
initialSelectedDataIndexes: initialSelectedDataIndexes);