DrillDownLevel class

One level in the drill-down hierarchy.

Constructors

DrillDownLevel({required String id, required String label, dynamic data, BaseChartConfig buildConfig(DrillDownLevel level)?, BaseChartConfig? config, Map<String, dynamic> metadata = const {}, double parentXStart = 0, double parentXEnd = 1})

Properties

buildConfig BaseChartConfig Function(DrillDownLevel level)?
Factory that builds the BaseChartConfig for this level.
final
config BaseChartConfig?
Pre-built config — use this when the config is already available.
final
data → dynamic
Raw data payload for this level (type is chart-specific).
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this level (used for deduplication).
final
label String
Human-readable label shown in breadcrumbs.
final
metadata Map<String, dynamic>
Optional metadata (e.g., selected bar value, parent category name).
no setter
parentXEnd double
final
parentXRange → (double, double)
Normalized parent x-range in 0..1.
no setter
parentXStart double
x-range in the parent's data space 0..1 that this level represents. Used to synchronise ChartZoomController with the drill-down level.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveConfig() BaseChartConfig
Resolve the config for this level.
toString() String
A string representation of this object.
override

Operators

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