copyPoints function

List<Point<num>> copyPoints(
  1. List<Point<num>> points
)

Makes a copy of points.

Implementation

List<Point<num>> copyPoints(List<Point<num>> points) {
  return points.map((p) => Point(p.x, p.y)).toList();
}