ZeroDonutChartController class

Zero-allocation controller for ZDonutChart storing slice weights in a contiguous Float32List and computing normalized sweep angles in place.

Inheritance

Constructors

ZeroDonutChartController({int sliceCount = 4, List<double>? initialValues})
Creates a ZeroDonutChartController with sliceCount slices (1..8).

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setteroverride
isDisposed → bool
Whether this controller has been disposed.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedSlice → int
Currently selected slice index (-1 if none or disposed).
no setter
sliceCount → int
Number of slices.
no setter
total → double
Sum of all slice values (0.0 if disposed).
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
override
dispose() → void
Discards any resources used by the object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
override
selectSlice(int index) → void
Selects a slice index (-1 to clear selection).
setSlice(int index, double value) → void
Updates a single slice value in place.
toString() → String
A string representation of this object.
inherited
valueAt(int index) → double
Reads raw slice value at index.

Operators

operator ==(Object other) → bool
The equality operator.
inherited