DonutChartBackgroundStyle class

Contains various customization options for the background of the chart.

Constructors

DonutChartBackgroundStyle({Color color = const Color(0x33FFFFFF), Color shadowColor = const Color(0x40000000), double shadowElevation = 4, Color? innerBorderColor, Gradient? innerBorderGradient, double innerBorderStroke = 1, Color? outerBorderColor, Gradient? outerBorderGradient, double outerBorderStroke = 1})
Constructs an instance of DonutChartBackgroundStyle.
const

Properties

backgroundPaint Paint
Gets a Paint for the donut background.
no setter
color Color
Color of the donut background.
final
hashCode int
The hash code for this object.
no setteroverride
hasInnerBorder bool
no setter
hasOuterBorder bool
no setter
innerBorderColor Color?
Inner border color of the donut section.
final
innerBorderGradient Gradient?
Inner border gradient of the donut section.
final
innerBorderStroke double
Inner border stroke (width) of the donut section.
final
outerBorderColor Color?
Outer border color of the donut section.
final
outerBorderGradient Gradient?
Outer border gradient of the donut section.
final
outerBorderStroke double
Outer border stroke (width) of the donut section.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color
Color of the donut shadow.
final
shadowElevation double
Elevation of the donut shadow.
final

Methods

copyWith({Color? color, Color? shadowColor, double? shadowElevation, Color? innerBorderColor, Gradient? innerBorderGradient, double? innerBorderStroke, Color? outerBorderColor, Gradient? outerBorderGradient, double? outerBorderStroke}) DonutChartBackgroundStyle
Creates a copy of the current object with new values specified in arguments.
getInnerBorderPaint([Rect? bounds]) Paint
Gets a Paint for the inner border drawing.
getOuterBorderPaint([Rect? bounds]) Paint
Gets a Paint for the 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