shift method Null safety
- Offset offset
Returns a copy of the path with all the segments of every sub-path translated by the given offset.
Implementation
Path shift(Offset offset) {
assert(_offsetIsValid(offset));
final Path path = Path._();
_shift(path, offset.dx, offset.dy);
return path;
}