Path.from constructor

Path.from(Path source)

Creates a copy of another Path.

This copy is fast and does not require additional memory unless either the source path or the path returned by this constructor are modified.

Implementation

factory Path.from(Path source) {
  return source._clone();
}