Path.from constructor

Path.from(
  1. 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) {
  final _NativePath clonedPath = _NativePath._();
  (source as _NativePath)._clone(clonedPath);
  return clonedPath;
}