SliceDataStyle class

Encapsulates all the Styling options required for a PieChart. The order of priority in styling is

  1. style in SliceData
  2. seriesStyle in PieSeries
  3. Default SliceDataStyle Style

Constructors

SliceDataStyle.new({required double radius, double? labelPosition, Color? color = Colors.amber, Gradient? gradient, Color? strokeColor = Colors.deepOrange, double? strokeWidth = 0.0})
Encapsulates all the Styling options required for a PieChart. The order of priority in styling is
const

Properties

color Color?
The color of the slice
final
gradient Gradient?
The Gradient of the slice
final
hashCode int
The hash code for this object.
no setterinherited
labelPosition double?
Defines the Position of the Label for Slice Along the length of the radius.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
radius double
The radius of the Pie/Slice. Maximum Radius size will be auto-calculated and will prevent Slice to Clip Out of Bounds
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
strokeColor Color?
The Color of the Stroke/Border around the Pie/Slice
final
strokeWidth double?
The Width of the Stroke/Border around the Pie/Slice
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

Static Methods

lerp(SliceDataStyle? current, SliceDataStyle? target, double donutRadius, double t) SliceDataStyle?
Lerps between two SliceDataStyle's for a factor t