PieSeries<T, D> constructor
PieSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - CircularSeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- List<
T> ? dataSource, - ChartValueMapper<
T, D> ? xValueMapper, - ChartValueMapper<
T, num> ? yValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartShaderMapper<
T> ? pointShaderMapper, - ChartValueMapper<
T, String> ? pointRadiusMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - ChartValueMapper<
T, String> ? sortFieldValueMapper, - int? startAngle,
- int? endAngle,
- String? radius,
- bool? explode,
- bool? explodeAll,
- int? explodeIndex,
- ActivationMode? explodeGesture,
- String? explodeOffset,
- double? groupTo,
- CircularChartGroupMode? groupMode,
- PointRenderMode? pointRenderMode,
- EmptyPointSettings? emptyPointSettings,
- Color? strokeColor,
- double? strokeWidth,
- double? opacity,
- DataLabelSettings? dataLabelSettings,
- bool? enableTooltip,
- String? name,
- double? animationDuration,
- double? animationDelay,
- SelectionBehavior? selectionBehavior,
- SortingOrder? sortingOrder,
- LegendIconType? legendIconType,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of PieSeries class.
Implementation
PieSeries(
{ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
CircularSeriesRendererCreatedCallback? onRendererCreated,
ChartPointInteractionCallback? onPointTap,
ChartPointInteractionCallback? onPointDoubleTap,
ChartPointInteractionCallback? onPointLongPress,
List<T>? dataSource,
ChartValueMapper<T, D>? xValueMapper,
ChartValueMapper<T, num>? yValueMapper,
ChartValueMapper<T, Color>? pointColorMapper,
ChartShaderMapper<T>? pointShaderMapper,
ChartValueMapper<T, String>? pointRadiusMapper,
ChartValueMapper<T, String>? dataLabelMapper,
ChartValueMapper<T, String>? sortFieldValueMapper,
int? startAngle,
int? endAngle,
String? radius,
bool? explode,
bool? explodeAll,
int? explodeIndex,
ActivationMode? explodeGesture,
String? explodeOffset,
double? groupTo,
CircularChartGroupMode? groupMode,
PointRenderMode? pointRenderMode,
EmptyPointSettings? emptyPointSettings,
Color? strokeColor,
double? strokeWidth,
double? opacity,
DataLabelSettings? dataLabelSettings,
bool? enableTooltip,
String? name,
double? animationDuration,
double? animationDelay,
SelectionBehavior? selectionBehavior,
SortingOrder? sortingOrder,
LegendIconType? legendIconType,
List<int>? initialSelectedDataIndexes})
: super(
key: key,
onCreateRenderer: onCreateRenderer,
onRendererCreated: onRendererCreated,
onPointTap: onPointTap,
onPointDoubleTap: onPointDoubleTap,
onPointLongPress: onPointLongPress,
animationDuration: animationDuration,
animationDelay: animationDelay,
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,
pointRadiusMapper: pointRadiusMapper == null
? null
: (int index) => pointRadiusMapper(dataSource![index], index),
dataLabelMapper: (int index) => dataLabelMapper != null
? dataLabelMapper(dataSource![index], index)
: null,
sortFieldValueMapper: sortFieldValueMapper != null
? (int index) => sortFieldValueMapper(dataSource![index], index)
: null,
pointShaderMapper: pointShaderMapper != null
? (dynamic data, int index, Color color, Rect rect) =>
pointShaderMapper(dataSource![index], index, color, rect)
: null,
startAngle: startAngle,
endAngle: endAngle,
radius: radius,
explode: explode,
explodeAll: explodeAll,
explodeIndex: explodeIndex,
explodeOffset: explodeOffset,
explodeGesture: explodeGesture,
groupTo: groupTo,
groupMode: groupMode,
pointRenderMode: pointRenderMode,
emptyPointSettings: emptyPointSettings,
initialSelectedDataIndexes: initialSelectedDataIndexes,
borderColor: strokeColor,
borderWidth: strokeWidth,
opacity: opacity,
dataLabelSettings: dataLabelSettings,
enableTooltip: enableTooltip,
name: name,
selectionBehavior: selectionBehavior,
legendIconType: legendIconType,
sortingOrder: sortingOrder);