FluentSparklineLayout class

The resolved geometry of one sparkline.

Pure and widget-free so the vertex table can be asserted without a widget tree. Upstream computes its two scales inside a useEffect with an empty dependency list (Sparkline.tsx:53-72) and captures them in a useMemo whose dependencies are both undefined on every render (:38-51), so the generators permanently close over the first render's scales and the chart never re-scales when data changes.

This port recomputes on every build. That is a deliberate divergence, not an oversight: a stale scale is not a rendering rule anyone specified, it is a React dependency-array bug, and reproducing it in Flutter would mean caching state in a widget that has none.

Annotations

Properties

areaPath → Path
The filled area, closed along the bottom edge of the plot.
final
hashCode → int
The hash code for this object.
no setterinherited
linePath → Path
The stroked polyline.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
vertices → List<Offset>
One point per datum, in data order, in painter coordinates.
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

compute({required List<FluentLineChartDataPoint> points, required Size size, required double topMargin}) → FluentSparklineLayout
Builds the line and area geometry for points inside size.