if (pos &gt; rootEnd) {
    return path.substring(0, pos + 1);
  } else if (rootEnd &gt; -1) {
    return path.substring(0, rootEnd + 1);
  } else {
    return &#39;.&#39;;
  }
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    onboarding_anim 0.0.1
  </span>

  
</footer>

<script src="https://ajax.googleapis.