="summary source-code" id="source">
      <h2><span>Implementation</span></h2>
      <pre class="language-dart"><code class="language-dart">static StackTrace defaultStackTrace(Object error) {
  if (error is Error) {
    var stackTrace = error.stackTrace;
    if (stackTrace != null) return stackTrace;
  }
  return StackTrace.empty;
}</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><!--