ChartDrillDownController class

A ValueNotifier<DrillDownState> managing hierarchical drill-down.

// Listen for level changes:
drillCtrl.addListener(() {
  final config = drillCtrl.currentConfig;
  setState(() => _activeConfig = config);
});

// Navigate down:
drillCtrl.push(myLevel);

// Navigate up:
drillCtrl.pop();

// Jump to root:
drillCtrl.popAll();
Inheritance

Constructors

ChartDrillDownController({required DrillDownLevel root})

Properties

no setter
canPop bool
no setter
currentConfig BaseChartConfig
no setter
currentLevel DrillDownLevel
no setter
currentXRange → (double, double)
The x-range start, end in the root data space for the current level.
no setter
depth int
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isDisposed bool
Whether this drill-down controller has been disposed.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value DrillDownState
The current value stored in this notifier.
getter/setter pairinherited-getteroverride-setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
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
pop() → void
Pop back to the previous level.
popAll() → void
Pop back to root, clearing the entire drill-down history.
popTo(String id) → void
Pop back to the level with id, if it exists in the stack.
push(DrillDownLevel level) → void
Push a new drill-down level.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replace(DrillDownLevel level) → void
Replace the current level (in-place update without history push).
toString() String
A string representation of this object.
inherited

Operators

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