SeriesPaint class

Style-aware paint factory shared by all renderers. The same call sites (stroke, areaFill, barFill, blobFill, glow) produce different paints depending on the active ChartStyle:

Shaders depend on geometry, so these build fresh Paint objects rather than using the PaintCache (which keys on solid colors).

Constructors

SeriesPaint(ChartStyle style)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style ChartStyle
final

Methods

areaFill(Rect rect, Color color, {double opacity = 1}) Paint
Area fill under a line (line / sparkline / stacked area).
bandFill(Rect rect, Color color, {double opacity = 1}) Paint
Filled band fill for stacked areas (more body than a line fill).
barFill(Rect rect, Color color, {double opacity = 1}) Paint
Bar / funnel fill.
blobFill(Rect rect, Color color, {double opacity = 1}) Paint
Slice / bubble / scatter point fill.
glow(Color color, {double strokeWidth = 6, double blur = 6}) Paint
Soft blurred underlay drawn beneath a line/shape for depth. Returns an invisible paint for ChartStyle.flat (draws nothing).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stroke(Rect rect, Color color, {double strokeWidth = 3, double opacity = 1}) Paint
Line/area/radar outline stroke.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

accent(Color color) Color
Brighter, slightly hue-shifted accent used as a gradient end-stop.
lighten(Color color, [double amount = 0.18]) Color
Lighten color toward white in HSL space by amount (0..1).