path property

Path get path

Get as a Path (for drawing in Flutter etc)

Implementation

Path get path {
  final path = Path();
  final start = edges[0].start;
  path.moveTo(start.x, start.y);
  for (var edge in edges) {
    edge.addToPath(path);
  }
  return path;
}