ChartSegment class Null safety

Creates the segments for chart series.

It has the public method and properties to customize the segment in the chart series, User can customize the calculation of the segment points by using the method calculateSegmentPoints. It has the property to store the old value of the series to support dynamic animation.

Provides the public properties color, stroke color, fill paint, stroke paint, series and old series to customize and dynamically change each segment in the chart.





animationFactor double
Animation factor value.
read / write
currentSegmentIndex int?
Current index value.
read / write
fillPaint Paint?
Fill paint of the segment.
read / write
hashCode int
The hash code for this object.
read-only, inherited
points List<Offset>
Current point offset value.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
strokePaint Paint?
Stroke paint of the segment.
read / write


calculateSegmentPoints() → void
Calculates the rendering bounds of a segment.
dispose() → void
To dispose the objects.
getFillPaint() Paint
Gets the color of the series.
getStrokePaint() Paint
Gets the border color of the series.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
onPaint(Canvas canvas) → void
Draws segment in series bounds.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.