ChartRenderer class abstract

Draws one chart into a Canvas. Implementations hold immutable data + style, mirroring the Compose/SwiftUI renderer pattern: a renderer is a pure value that, given a canvas, size, theme, and reveal progress, draws itself.

Implementers

Constructors

ChartRenderer()
const

Properties

accessibilityLabel String
A short label naming the kind of chart, e.g. "Line chart", for semantics.
no setter
accessibilityValue String
A value summarizing the chart's data — counts, range, a few points.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

draw(Canvas canvas, Size size, DrafterThemeColors theme, double progress) → void
Draws the chart. progress is the entrance reveal in 0..1 (1 = fully drawn).
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