clone method

Waypath clone()

Creates a deep copy of this Waypath.

Implementation

Waypath clone() {
  Waypath result = Waypath(path: List.from(_path));
  result._closed = _closed;
  result._boundingBox = _boundingBox;
  return result;
}