shift method

Path shift (Offset offset)

Returns a copy of the path with all the segments of every subpath translated by the given offset.

Implementation

Path shift(Offset offset) {
  assert(_offsetIsValid(offset));
  return _shift(offset.dx, offset.dy);
}