RadialBarSeries<T, D> constructor
RadialBarSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - CircularSeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- List<
T> ? dataSource, - required ChartValueMapper<
T, D> xValueMapper, - required ChartValueMapper<
T, num> yValueMapper, - ChartValueMapper<
T, Color> ? pointColorMapper, - ChartShaderMapper<
T> ? pointShaderMapper, - ChartValueMapper<
T, String> ? pointRadiusMapper, - ChartValueMapper<
T, String> ? dataLabelMapper, - ChartValueMapper<
T, String> ? sortFieldValueMapper, - Color trackColor = const Color.fromRGBO(234, 236, 239, 1.0),
- double trackBorderWidth = 0.0,
- double trackOpacity = 1,
- bool useSeriesColor = false,
- Color trackBorderColor = Colors.transparent,
- double? maximumValue,
- DataLabelSettings? dataLabelSettings,
- String? radius,
- String? innerRadius,
- String? gap,
- double? strokeWidth,
- double? opacity,
- Color? strokeColor,
- bool? enableTooltip,
- String? name,
- double? animationDuration,
- double? animationDelay,
- SelectionBehavior? selectionBehavior,
- SortingOrder? sortingOrder,
- LegendIconType? legendIconType,
- CornerStyle? cornerStyle,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of RadialBarSeries class.
Implementation
RadialBarSeries(
{ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
CircularSeriesRendererCreatedCallback? onRendererCreated,
ChartPointInteractionCallback? onPointTap,
ChartPointInteractionCallback? onPointDoubleTap,
ChartPointInteractionCallback? onPointLongPress,
List<T>? dataSource,
required ChartValueMapper<T, D> xValueMapper,
required ChartValueMapper<T, num> yValueMapper,
ChartValueMapper<T, Color>? pointColorMapper,
ChartShaderMapper<T>? pointShaderMapper,
ChartValueMapper<T, String>? pointRadiusMapper,
ChartValueMapper<T, String>? dataLabelMapper,
ChartValueMapper<T, String>? sortFieldValueMapper,
this.trackColor = const Color.fromRGBO(234, 236, 239, 1.0),
this.trackBorderWidth = 0.0,
this.trackOpacity = 1,
this.useSeriesColor = false,
this.trackBorderColor = Colors.transparent,
this.maximumValue,
DataLabelSettings? dataLabelSettings,
String? radius,
String? innerRadius,
String? gap,
double? strokeWidth,
double? opacity,
Color? strokeColor,
bool? enableTooltip,
String? name,
double? animationDuration,
double? animationDelay,
SelectionBehavior? selectionBehavior,
SortingOrder? sortingOrder,
LegendIconType? legendIconType,
CornerStyle? cornerStyle,
List<int>? initialSelectedDataIndexes})
: super(
key: key,
onCreateRenderer: onCreateRenderer,
onRendererCreated: onRendererCreated,
onPointTap: onPointTap,
onPointDoubleTap: onPointDoubleTap,
onPointLongPress: onPointLongPress,
dataSource: dataSource,
animationDuration: animationDuration,
animationDelay: animationDelay,
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: (int index) => pointRadiusMapper != null
? pointRadiusMapper(dataSource![index], index)
: null,
pointShaderMapper: pointShaderMapper != null
? (dynamic data, int index, Color color, Rect rect) =>
pointShaderMapper(dataSource![index], index, color, rect)
: null,
dataLabelMapper: (int index) => dataLabelMapper != null
? dataLabelMapper(dataSource![index], index)
: null,
sortFieldValueMapper: sortFieldValueMapper != null
? (int index) => sortFieldValueMapper(dataSource![index], index)
: null,
radius: radius,
innerRadius: innerRadius,
gap: gap,
borderColor: strokeColor,
borderWidth: strokeWidth,
opacity: opacity,
enableTooltip: enableTooltip,
dataLabelSettings: dataLabelSettings,
name: name,
selectionBehavior: selectionBehavior,
sortingOrder: sortingOrder,
legendIconType: legendIconType,
cornerStyle: cornerStyle,
initialSelectedDataIndexes: initialSelectedDataIndexes,
);