)
      
    </section>
    <section class="desc markdown">
      <p>Returns a copy of the path with all the segments of every
sub-path translated by the given offset.</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">Path shift(Offset offset) {
  assert(_offsetIsValid(offset));
  final Path path = Path._();
  _shift(path, offset.dx, offset.dy);
  return path;
}</code></pre>
  