ChartSegment class

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.

Implementers

Constructors

ChartSegment()

Properties

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

Methods

calculateSegmentPoints() → void
Calculates the rendering bounds of a segment
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. [...]
inherited
onPaint(Canvas canvas) → void
Draws segment in series bounds.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited