DonutCenterData class
Resolved data and presentation state for one Donut center.
A selected grouped slice exposes the aggregate selectedPoint together with every original selectedSourcePointIndices and selectedSourcePoints.
- Annotations
Constructors
-
DonutCenterData({required String seriesId, required String? seriesName, required String? unit, required double total, required String? label, required String valueLabel, required String semanticLabel, required double availableDiameter, required TextStyle defaultLabelStyle, required TextStyle defaultValueStyle, required Color selectionColor, ChartDataPoint? selectedPoint, String? selectedCategory, double? selectedValue, String? selectedSeriesId, int? selectedRingIndex, int? selectedPointIndex, List<
DonutCenterRingSummary> rings = const <DonutCenterRingSummary>[], List<int> selectedSourcePointIndices = const <int>[], List<ChartDataPoint> selectedSourcePoints = const <ChartDataPoint>[]}) - Creates immutable details for a visible Donut center.
Properties
- availableDiameter → double
-
Diameter of the circular opening available to the interaction shell.
final
- defaultLabelStyle → TextStyle
-
Effective default style for the center's secondary label.
final
- defaultValueStyle → TextStyle
-
Effective default style for the center's primary value.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasSelection → bool
-
Whether the center currently represents a selected visible slice.
no setter
- label → String?
-
Resolved portable label used by the default center presentation.
final
-
rings
→ List<
DonutCenterRingSummary> -
Every independent ring sharing this center, in source-series order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedCategory → String?
-
Resolved category of selectedPoint.
final
- selectedPoint → ChartDataPoint?
-
Effective visible selected point, including a grouped aggregate.
final
- selectedPointIndex → int?
-
Source point index represented by selectedPoint, when selected.
final
- selectedRingIndex → int?
-
Source-series index that owns selectedPoint, when selected.
final
- selectedSeriesId → String?
-
Stable series identity that owns selectedPoint, when selected.
final
-
Selected contribution divided by total.
final
-
selectedSourcePointIndices
→ List<
int> -
Stable source point indices represented by selectedPoint.
final
-
selectedSourcePoints
→ List<
ChartDataPoint> -
Original source points represented by selectedPoint.
final
- selectedValue → double?
-
Primary contribution of selectedPoint.
final
- selectionColor → Color
-
Chart focus color available for custom selected treatments.
final
- semanticLabel → String
-
Package-owned accessible description retained around custom content.
final
- seriesId → String
-
Stable series identity used by controller and artifact point references.
final
- seriesName → String?
-
Optional user-facing series name.
final
- total → double
-
Sum of every positive source contribution.
final
- unit → String?
-
Optional unit supplied by the Donut series.
final
- valueLabel → String
-
Resolved portable value used by the default center presentation.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited