AuthoredPathOutline constructor

AuthoredPathOutline(
  1. DiagramRect bounds,
  2. Iterable<DiagramPoint> points, {
  3. 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.');
  }
}