AuthoredPathOutline constructor
AuthoredPathOutline(
- DiagramRect bounds,
- Iterable<
DiagramPoint> points, { - Iterable<
DiagramPoint> inkHull = const [],
Implementation
AuthoredPathOutline(
super.bounds,
Iterable<DiagramPoint> points, {
Iterable<DiagramPoint> inkHull = const [],
}) : points = List.unmodifiable(points),
inkHull = List.unmodifiable(inkHull) {
if (this.points.length < 2) {
throw StateError('An authored path requires at least two points.');
}
}