PieSeries class
This class defines the Data Set to be provided to the PieChart and the Global Styling options
The PieSeries is mandatory to be provided to the PieChart widget.
See Also: RadialSeries
- Inheritance
-
- Object
- RadialSeries<
PieInteractionEvents> - PieSeries
Constructors
-
PieSeries.new({double donutRadius = 0.0, Color? donutSpaceColor = Colors.transparent, DonutLabel? donutLabel, ChartTextStyle? donutLabelStyle = defaultChartTextStyle, ChartTextStyle? labelStyle = defaultChartTextStyle, SliceDataStyle? seriesStyle, required List<
SliceData> slices, PieInteractionEvents interactionEvents = const PieInteractionEvents(isEnabled: false)}) - This class defines the Data Set to be provided to the PieChart and the Global Styling options
- PieSeries.zero()
-
Constructs a Factory Instance of PieSeries without any Data.
factory
Properties
- donutLabel → DonutLabel?
-
Callback for Label in the Donut Area
final
- donutLabelStyle → ChartTextStyle?
-
Sets styling for the Donut Label in this PieSeries.
final
- donutRadius → double
-
The size of the Donut Circle. Defaults to zero.
final
- donutSpaceColor → Color?
-
Color of the Donut Circle. Defaults to Colors.transparent
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactionEvents → PieInteractionEvents
-
finalinherited
- labelStyle → ChartTextStyle?
-
Sets uniform styling for All the Slice Labels in this PieSeries.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seriesStyle → SliceDataStyle?
-
Sets uniform styling for All the Pie Slices in this PieSeries.
final
-
slices
→ List<
SliceData> -
The DataSet for our Pie/Donut Chart. It is Structured as a SliceData
and every slice can be set to have it's own radius and styling
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
maybeWhen<
T> ({T onPieSeries(PieSeries series)?, required T orElse()}) → T -
Checks the Subclass Type and returns the casted instance
to the matched callback.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({required T onPieSeries(PieSeries series)}) → T -
Checks the Subclass Type and returns the casted instance
to the matched callback. All callbacks must be provided.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited