DataItem class
Represents a single data point used in charts.
Each DataItem holds an identifier, a display label, a numeric value, an optional custom color, and a selection state.
Constructors
Properties
- color ↔ Color?
-
An optional color used to render this data point.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ dynamic
-
A unique identifier for this data item.
getter/setter pair
- label ↔ String
-
The display label shown alongside the data point (e.g., in legends and labels).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected ↔ bool
-
Whether this data point is currently selected.
getter/setter pair
- value ↔ double
-
The numeric value of this data point.
getter/setter pair
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