PolylinePath constructor
PolylinePath(
- List<
Vector3> points
Creates a polyline through points, which is copied. At least two
points are required.
Implementation
PolylinePath(List<Vector3> points)
: _points = <Vector3>[for (final p in points) p.clone()] {
if (_points.length < 2) {
throw ArgumentError('A path needs at least two points');
}
}