CircularSeries<T, D> constructor
CircularSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - CircularSeriesRendererCreatedCallback? onRendererCreated,
- List<
T> ? dataSource, - ChartIndexedValueMapper<
D> ? xValueMapper, - ChartIndexedValueMapper<
num> ? yValueMapper, - ChartIndexedValueMapper<
Color> ? pointColorMapper, - ChartShaderMapper? pointShaderMapper,
- ChartIndexedValueMapper<
String> ? pointRadiusMapper, - ChartIndexedValueMapper<
String> ? dataLabelMapper, - ChartIndexedValueMapper? sortFieldValueMapper,
- int? startAngle,
- int? endAngle,
- String? radius,
- String? innerRadius,
- bool? explode,
- bool? explodeAll,
- int? explodeIndex,
- ActivationMode? explodeGesture,
- String? explodeOffset,
- double? groupTo,
- CircularChartGroupMode? groupMode,
- PointRenderMode? pointRenderMode,
- String? gap,
- double? opacity,
- EmptyPointSettings? emptyPointSettings,
- Color? borderColor,
- double? borderWidth,
- DataLabelSettings? dataLabelSettings,
- bool? enableTooltip,
- bool? enableSmartLabels,
- String? name,
- double? animationDuration,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- SortingOrder? sortingOrder,
- LegendIconType? legendIconType,
- CornerStyle? cornerStyle,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of CircularSeries class.
Implementation
CircularSeries(
{this.key,
this.onCreateRenderer,
this.onRendererCreated,
this.dataSource,
this.xValueMapper,
this.yValueMapper,
this.pointColorMapper,
this.pointShaderMapper,
this.pointRadiusMapper,
this.dataLabelMapper,
this.sortFieldValueMapper,
int? startAngle,
int? endAngle,
String? radius,
String? innerRadius,
bool? explode,
bool? explodeAll,
this.explodeIndex,
ActivationMode? explodeGesture,
String? explodeOffset,
this.groupTo,
this.groupMode,
this.pointRenderMode,
String? gap,
double? opacity,
EmptyPointSettings? emptyPointSettings,
Color? borderColor,
double? borderWidth,
DataLabelSettings? dataLabelSettings,
bool? enableTooltip,
bool? enableSmartLabels,
this.name,
double? animationDuration,
// ignore: deprecated_member_use_from_same_package
SelectionSettings? selectionSettings,
SelectionBehavior? selectionBehavior,
SortingOrder? sortingOrder,
LegendIconType? legendIconType,
CornerStyle? cornerStyle,
List<int>? initialSelectedDataIndexes})
: startAngle = startAngle ?? 0,
animationDuration = animationDuration ?? 1500,
endAngle = endAngle ?? 360,
radius = radius ?? '80%',
innerRadius = innerRadius ?? '50%',
explode = explode ?? false,
explodeAll = explodeAll ?? false,
explodeOffset = explodeOffset ?? '10%',
explodeGesture = explodeGesture ?? ActivationMode.singleTap,
gap = gap ?? '1%',
cornerStyle = cornerStyle ?? CornerStyle.bothFlat,
dataLabelSettings = dataLabelSettings ?? DataLabelSettings(),
emptyPointSettings = emptyPointSettings ?? EmptyPointSettings(),
// ignore: deprecated_member_use_from_same_package
selectionSettings = selectionSettings ?? SelectionSettings(),
selectionBehavior = selectionBehavior ?? SelectionBehavior(),
borderColor = borderColor ?? Colors.transparent,
borderWidth = borderWidth ?? 0.0,
opacity = opacity ?? 1,
enableTooltip = enableTooltip ?? true,
sortingOrder = sortingOrder ?? SortingOrder.none,
legendIconType = legendIconType ?? LegendIconType.seriesType,
enableSmartLabels = enableSmartLabels ?? true,
initialSelectedDataIndexes = initialSelectedDataIndexes ?? <int>[],
super(name: name) {
_renderer = _ChartSeriesRender();
}