BezierPathBuilder class
Cubic Bezier path utilities for smooth line charts.
Constructors
- BezierPathBuilder({double tension = 0.35})
Properties
Methods
-
buildFromPoints(
List< ChartPoint> points, CoordinateTransformer transformer, {bool smooth = true, bool close = false}) → Path - Builds path from chart points using a coordinate transformer.
-
buildMonotonePath(
List< Offset> points, {bool close = false}) → Path - Builds a smooth path using monotone cubic interpolation (Fritsch–Carlson). Unlike a cardinal spline, this never overshoots the data: the curve introduces no false peaks, no dips below a local minimum, and stays within the value range between points — so a smoothed line remains a faithful reading of the data.
-
buildSmoothPath(
List< Offset> points, {bool close = false}) → Path - Builds a smooth cubic Bezier path through transformed points.
-
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