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) {
final _PureDartPath clonedPath = _PureDartPath();
if (source is _PureDartPath) {
clonedPath._commands.addAll(source._commands);
}
return clonedPath;
}