BezierPathBuilder class

Cubic Bezier path utilities for smooth line charts.

Constructors

BezierPathBuilder({double tension = 0.35})

Properties

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

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