isLinear property
bool
isLinear
True if the y values of the control points after being translated and rotated are within a specified small distance (the constant linearTolerance) from zero.
Implementation
bool get isLinear {
final alignedPoints = alignWithLineSegment(points, startPoint, endPoint);
for (final alignedPoint in alignedPoints) {
if (alignedPoint.y.abs() > linearTolerance) {
return false;
}
}
return true;
}