PieData class
Model class for pie chart data used in PieSummary widget
Constructors
- PieData.new({required String label, required double value, required Color color, String? tooltipText})
-
Creates a PieData object for use in PieSummary widget
const
Properties
- color → Color
-
Color for the pie section
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Label for the pie section (displayed in legend)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipText → String?
-
Optional custom tooltip text
final
- value → double
-
Value for the pie section size
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