SliceData class

Defines the Data of a Pie Slice in the Pie/Donut chart

Holds the Numeric Value, label and styling for this Slice

Constructors

SliceData.new({required num value, ChartTextStyle? labelStyle, SliceMapper? label, SliceDataStyle? style})
Defines the Data of a Pie Slice in the Pie/Donut chart
const

Properties

hashCode int
The hash code for this object.
no setterinherited
label SliceMapper?
Callback for Label for the Style
final
labelStyle ChartTextStyle?
Text Styling for the label.
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
style SliceDataStyle?
Sets uniform styling for the Pie/Slice in this SliceData.
final
value num
Numeric Value of this 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(SliceData? current, SliceData target, double donutRadius, double t) SliceData
Lerps between two SliceData values for a factor t
lerpSliceDataList(List<SliceData>? current, List<SliceData> target, double donutRadius, double t) List<SliceData>
Lerps between two SliceData Lists for a factor t