CircularSeries<T, D> constructor
CircularSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - CircularSeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- 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,
- String? name,
- double? animationDuration,
- double? animationDelay,
- 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.onPointTap,
this.onPointDoubleTap,
this.onPointLongPress,
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,
this.name,
double? animationDuration,
double? animationDelay,
SelectionBehavior? selectionBehavior,
SortingOrder? sortingOrder,
LegendIconType? legendIconType,
CornerStyle? cornerStyle,
List<int>? initialSelectedDataIndexes})
: startAngle = startAngle ?? 0,
animationDuration = animationDuration ?? 1500,
animationDelay = animationDelay ?? 0,
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 ?? const DataLabelSettings(),
emptyPointSettings = emptyPointSettings ?? EmptyPointSettings(),
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,
initialSelectedDataIndexes = initialSelectedDataIndexes ?? <int>[],
super(name: name);