DonutChartSectionStyle class
Contains various customization options for the section of the chart.
Constructors
-
DonutChartSectionStyle({List<
Color> colors = const [Color(0x80FFFFFF)], Color selectedColor = const Color(0xFFFFFFFF), Color? selectedInnerBorderColor, Gradient? selectedInnerBorderGradient, double selectedInnerBorderStroke = 1, Color? selectedOuterBorderColor, Gradient? selectedOuterBorderGradient, double selectedOuterBorderStroke = 1}) -
Constructs an instance of DonutChartSectionStyle.
const
Properties
-
colors
→ List<
Color> -
Colors of the donut sections.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasSelectedInnerBorder → bool
-
no setter
- hasSelectedOuterBorder → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sectionPaint → Paint
-
Gets a Paint for the donut section.
no setter
- selectedColor → Color
-
Color of the selected donut section.
final
- selectedInnerBorderColor → Color?
-
Inner border color of the selected donut section.
final
- selectedInnerBorderGradient → Gradient?
-
Inner border gradient of the selected donut section.
final
- selectedInnerBorderStroke → double
-
Inner border stroke (width) of the selected donut section.
final
- selectedOuterBorderColor → Color?
-
Outer border color of the selected donut section.
final
- selectedOuterBorderGradient → Gradient?
-
Outer border gradient of the selected donut section.
final
- selectedOuterBorderStroke → double
-
Outer border stroke (width) of the selected donut section.
final
- selectedSectionPaint → Paint
-
Gets a Paint for the selected donut section.
no setter
Methods
-
copyWith(
{List< Color> ? colors, Color? selectedColor, Color? selectedInnerBorderColor, Gradient? selectedInnerBorderGradient, double? selectedInnerBorderStroke, Color? selectedOuterBorderColor, Gradient? selectedOuterBorderGradient, double? selectedOuterBorderStroke}) → DonutChartSectionStyle - Creates a copy of the current object with new values specified in arguments.
-
getSelectedInnerBorderPaint(
[Rect? bounds]) → Paint - Gets a Paint for the selected inner border drawing.
-
getSelectedOuterBorderPaint(
[Rect? bounds]) → Paint - Gets a Paint for the selected outer border drawing.
-
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.
override