PyramidSeries<T, D> constructor
PyramidSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - PyramidSeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? yValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartValueMapper<
T, String> ? textFieldMapper, - String? name,
- String? height,
- String? width,
- PyramidMode? pyramidMode,
- double? gapRatio,
- LegendIconType? legendIconType,
- EmptyPointSettings? emptyPointSettings,
- DataLabelSettings? dataLabelSettings,
- double? animationDuration,
- double? animationDelay,
- double? opacity,
- Color? borderColor,
- double? borderWidth,
- bool? explode,
- num? explodeIndex,
- ActivationMode? explodeGesture,
- String? explodeOffset,
- SelectionBehavior? selectionBehavior,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of PyramidSeries class.
Implementation
PyramidSeries({
ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
PyramidSeriesRendererCreatedCallback? onRendererCreated,
ChartPointInteractionCallback? onPointTap,
ChartPointInteractionCallback? onPointDoubleTap,
ChartPointInteractionCallback? onPointLongPress,
List<T>? dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? yValueMapper,
ChartValueMapper<T, Color>? pointColorMapper,
ChartValueMapper<T, String>? textFieldMapper,
String? name,
String? height,
String? width,
PyramidMode? pyramidMode,
double? gapRatio,
LegendIconType? legendIconType,
EmptyPointSettings? emptyPointSettings,
DataLabelSettings? dataLabelSettings,
double? animationDuration,
double? animationDelay,
double? opacity,
Color? borderColor,
double? borderWidth,
bool? explode,
num? explodeIndex,
ActivationMode? explodeGesture,
String? explodeOffset,
SelectionBehavior? selectionBehavior,
List<int>? initialSelectedDataIndexes,
}) : super(
key: key,
onCreateRenderer: onCreateRenderer,
onRendererCreated: onRendererCreated,
onPointTap: onPointTap,
onPointDoubleTap: onPointDoubleTap,
onPointLongPress: onPointLongPress,
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,
height: height,
width: width,
pyramidMode: pyramidMode,
gapRatio: gapRatio,
emptyPointSettings: emptyPointSettings,
dataLabelSettings: dataLabelSettings,
legendIconType: legendIconType,
opacity: opacity,
borderColor: borderColor,
borderWidth: borderWidth,
animationDuration: animationDuration,
animationDelay: animationDelay,
explode: explode,
explodeIndex: explodeIndex,
explodeOffset: explodeOffset,
explodeGesture: explodeGesture,
selectionBehavior: selectionBehavior,
initialSelectedDataIndexes: initialSelectedDataIndexes,
);