line method

void line({
  1. required Point<double> to,
})

Add a line to a point

Implementation

void line({required Point<double> to}) {
  edges.add(LineEdge(currentPoint, to));
  currentPoint = to;
}