PieChartSectionData class
Holds data related to drawing each PieChartWidget section.
Constructors
- PieChartSectionData({double? value, Color? color, double? radius, bool? showTitle, TextStyle? titleStyle, String? title, BorderSide? borderSide, Widget? badgeWidget, double? titlePositionPercentageOffset, double? badgePositionPercentageOffset})
-
PieChartWidget draws section from right side of the circle (0 degrees),
each section have a
value
that determines how much it should occupy, this is depends on sum of all sections, each section should occupy (value
/ sumValues) * 360 degrees.
Properties
- badgePositionPercentageOffset → double
-
Defines position of badge widget in the section.
final
- badgeWidget → Widget?
-
Defines a widget that represents the section.
final
- borderSide → BorderSide
-
Defines border stroke around the section
final
- color → Color
-
Defines the color of section.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- radius → double
-
Defines the radius of section.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showTitle → bool
-
Defines show or hide the title of section.
final
- title → String
-
Defines text of showing title at the middle of section.
final
- titlePositionPercentageOffset → double
-
Defines position of showing title in the section.
final
- titleStyle → TextStyle?
-
Defines style of showing title of section.
final
- value → double
-
It determines how much space it should occupy around the circle.
final
Methods
-
copyWith(
{double? value, Color? color, double? radius, bool? showTitle, TextStyle? titleStyle, String? title, BorderSide? borderSide, Widget? badgeWidget, double? titlePositionPercentageOffset, double? badgePositionPercentageOffset}) → PieChartSectionData - Copies current PieChartSectionData to a new PieChartSectionData, and replaces provided values.
-
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
Static Methods
-
lerp(
PieChartSectionData a, PieChartSectionData b, double t) → PieChartSectionData -
Lerps a PieChartSectionData based on
t
value, check Tween.lerp.