CINXE.COM

stack_trace | Dart package

<!DOCTYPE html> <html lang="en-us"><head><script src="https://www.googletagmanager.com/gtm.js?id=GTM-MX6DBN9" async="async"></script><script src="/static/hash-v0koh7hq/js/gtm.js" async="async"></script><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="ie=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="twitter:card" content="summary"/><meta name="twitter:site" content="@dart_lang"/><meta name="twitter:description" content="A package for manipulating stack traces and printing them readably."/><meta name="twitter:image" content="https://pub.dev/static/hash-v0koh7hq/img/pub-dev-icon-cover-image.png"/><meta property="og:type" content="website"/><meta property="og:site_name" content="Dart packages"/><meta property="og:title" content="stack_trace | Dart package"/><meta property="og:description" content="A package for manipulating stack traces and printing them readably."/><meta property="og:image" content="https://pub.dev/static/hash-v0koh7hq/img/pub-dev-icon-cover-image.png"/><meta property="og:url" content="https://pub.dev/packages/stack_trace"/><title>stack_trace | Dart package</title><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&amp;family=Google+Sans+Display:wght@400&amp;family=Google+Sans+Text:wght@400;500;700&amp;family=Google+Sans+Mono:wght@400;700&amp;display=swap"/><link rel="shortcut icon" href="/favicon.ico?hash=nk4nss8c7444fg0chird9erqef2vkhb8"/><link rel="stylesheet" href="https://www.gstatic.com/glue/v25_0/ccb.min.css"/><link rel="search" type="application/opensearchdescription+xml" title="Dart packages" href="/osd.xml"/><link rel="canonical" href="https://pub.dev/packages/stack_trace"/><meta name="description" content="A package for manipulating stack traces and printing them readably."/><link rel="alternate" type="application/atom+xml" title="Updated Packages Feed for Pub" href="/feed.atom"/><link rel="stylesheet" type="text/css" href="/static/hash-v0koh7hq/material/bundle/styles.css"/><link rel="stylesheet" type="text/css" href="/static/hash-v0koh7hq/css/style.css"/><script src="/static/hash-v0koh7hq/material/bundle/script.min.js" defer="defer"></script><script src="/static/hash-v0koh7hq/js/script.dart.js" defer="defer"></script><script src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js" defer="defer" data-autoload-cookie-consent-bar="true"></script><meta name="pub-page-data" content="eyJwa2dEYXRhIjp7InBhY2thZ2UiOiJzdGFja190cmFjZSIsInZlcnNpb24iOiIxLjEyLjEiLCJsaWtlcyI6MzAwLCJwdWJsaXNoZXJJZCI6InRvb2xzLmRhcnQuZGV2IiwiaXNEaXNjb250aW51ZWQiOmZhbHNlLCJpc0xhdGVzdCI6dHJ1ZX0sInNlc3Npb25Bd2FyZSI6ZmFsc2V9"/><link rel="preload" href="/static/hash-v0koh7hq/highlight/highlight-with-init.js" as="script"/></head><body class="light-theme"><script src="/static/hash-v0koh7hq/js/dark-init.js"></script><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MX6DBN9" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><div class="site-header"><button class="hamburger" aria-label="menu toggle"></button><a class="logo" href="/" aria-label="Go to the landing page of pub.dev"><img class="site-logo" src="/static/hash-v0koh7hq/img/pub-dev-logo.svg" alt="" width="140" height="30" role="presentation"/></a><div class="site-header-space"></div><div class="site-header-mask"></div><div class="site-header-search"><form action="/packages" method="GET"><input class="site-header-search-input" name="q" placeholder="New search..." autocomplete="on" title="Search"/></form></div><nav class="site-header-nav scroll-container"><div class="nav-login-container"><button id="-account-login" class="nav-main-button link">Sign in</button></div><div class="nav-container nav-help-container hoverable"><button class="nav-main-button">Help</button><div class="nav-hover-popup"><div class="nav-table-columns"><div class="nav-table-column"><h3>pub.dev</h3><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div><div class="nav-table-column"><h3>Flutter</h3><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div><div class="nav-table-column"><h3>Dart</h3><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">pub.dev <img class="foldable-icon" src="/static/hash-v0koh7hq/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="/help/search" rel="noopener" target="_blank">Searching for packages</a><a class="nav-link" href="/help/scoring" rel="noopener" target="_blank">Package scoring and pub points</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Flutter <img class="foldable-icon" src="/static/hash-v0koh7hq/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://flutter.dev/using-packages/" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://flutter.dev/developing-packages/" rel="noopener" target="_blank">Developing packages and plugins</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div><div class="nav-container nav-help-container-mobile foldable"><h3 class="foldable-button">Dart <img class="foldable-icon" src="/static/hash-v0koh7hq/img/nav-mobile-foldable-icon.svg" alt="toggle folding of the section" width="13" height="6"/></h3><div class="foldable-content"><a class="nav-link" href="https://dart.dev/guides/packages" rel="noopener" target="_blank">Using packages</a><a class="nav-link" href="https://dart.dev/tools/pub/publishing" rel="noopener" target="_blank">Publishing a package</a></div></div></nav><button class="-pub-theme-toggle" aria-label="light/dark theme toggle"></button></div><div id="banner-container"></div><main class="container"><div class="detail-wrapper -active -has-info-box"><div class="detail-header -is-loose"><div class="detail-container"><div class="detail-header-outer-block"><div class="detail-header-content-block"><h1 class="title pub-monochrome-icon-hoverable">stack_trace 1.12.1 <span class="pkg-page-title-copy"><img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-v0koh7hq/img/content-copy-icon.svg" alt="copy &quot;stack_trace: ^1.12.1&quot; to clipboard" width="18" height="18" title="Copy &quot;stack_trace: ^1.12.1&quot; to clipboard" data-copy-content="stack_trace: ^1.12.1" data-ga-click-event="copy-package-version"/><div class="pkg-page-title-copy-feedback"><span class="code">stack_trace: ^1.12.1</span> copied to clipboard</div></span></h1><div class="metadata">Published <span><a class="-x-ago" href="" title="Dec 20, 2024" role="button" data-timestamp="1734701461144">2 months ago</a></span> • <a class="-pub-publisher" href="/publishers/tools.dart.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-v0koh7hq/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>tools.dart.dev</a><span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span></div><div class="detail-tags-and-like"><div class="detail-tags"><div class="-pub-tag-badge"><span class="tag-badge-main">SDK</span><a class="tag-badge-sub" href="/packages?q=sdk%3Adart" rel="nofollow" title="Packages compatible with Dart SDK">Dart</a><a class="tag-badge-sub" href="/packages?q=sdk%3Aflutter" rel="nofollow" title="Packages compatible with Flutter SDK">Flutter</a></div><div class="-pub-tag-badge"><span class="tag-badge-main">Platform</span><a class="tag-badge-sub" href="/packages?q=platform%3Aandroid" rel="nofollow" title="Packages compatible with Android platform">Android</a><a class="tag-badge-sub" href="/packages?q=platform%3Aios" rel="nofollow" title="Packages compatible with iOS platform">iOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Alinux" rel="nofollow" title="Packages compatible with Linux platform">Linux</a><a class="tag-badge-sub" href="/packages?q=platform%3Amacos" rel="nofollow" title="Packages compatible with macOS platform">macOS</a><a class="tag-badge-sub" href="/packages?q=platform%3Aweb" rel="nofollow" title="Packages compatible with Web platform">web</a><a class="tag-badge-sub" href="/packages?q=platform%3Awindows" rel="nofollow" title="Packages compatible with Windows platform">Windows</a></div></div><div class="detail-like"><button id="-pub-like-icon-button" class="mdc-icon-button" data-ga-click-event="toggle-like" aria-pressed="false" title="Like this package"><img class="mdc-icon-button__icon" src="/static/hash-v0koh7hq/img/like-inactive.svg" alt="liked status: inactive" width="18" height="18"/><img class="mdc-icon-button__icon mdc-icon-button__icon--on" src="/static/hash-v0koh7hq/img/like-active.svg" alt="liked status: active" width="18" height="18"/></button><span class="likes-count"><span id="likes-count">300</span></span></div></div></div></div></div></div><div class="detail-container"><div class="detail-lead"><div class="detail-metadata-toggle"><div class="detail-metadata-toggle-icon">→</div><h3 class="detail-lead-title">Metadata</h3></div><p class="detail-lead-text">A package for manipulating stack traces and printing them readably.</p><p class="detail-lead-more"><a class="detail-metadata-toggle">More...</a></p></div></div><div class="detail-body"><div class="detail-tabs"><div class="detail-tabs-wide-header"><div class="detail-container"><ul class="detail-tabs-header"><li class="detail-tab tab-button detail-tab-readme-title -active">Readme</li><li class="detail-tab tab-link detail-tab-changelog-title"><a href="/packages/stack_trace/changelog" role="button">Changelog</a></li><li class="detail-tab tab-link detail-tab-example-title"><a href="/packages/stack_trace/example" role="button">Example</a></li><li class="detail-tab tab-link detail-tab-installing-title"><a href="/packages/stack_trace/install" role="button">Installing</a></li><li class="detail-tab tab-link detail-tab-versions-title"><a href="/packages/stack_trace/versions" role="button">Versions</a></li><li class="detail-tab tab-link detail-tab-analysis-title"><a href="/packages/stack_trace/score" role="button">Scores</a></li></ul></div></div><div class="detail-container detail-body-main"><div class="detail-tabs-content"><section class="tab-content detail-tab-readme-content -active markdown-body"><p><a href="https://github.com/dart-lang/tools/actions/workflows/stack_trace.yaml" rel="ugc"><img src="https://github.com/dart-lang/tools/actions/workflows/stack_trace.yaml/badge.svg" alt="Build Status"></a> <a href="https://pub.dev/packages/stack_trace"><img src="https://img.shields.io/pub/v/stack_trace.svg" alt="pub package"></a> <a href="https://pub.dev/packages/stack_trace/publisher"><img src="https://img.shields.io/pub/publisher/stack_trace.svg" alt="package publisher"></a></p> <p>This library provides the ability to parse, inspect, and manipulate stack traces produced by the underlying Dart implementation. It also provides functions to produce string representations of stack traces in a more readable format than the native <a href="https://api.dart.dev/stable/dart-core/StackTrace-class.html">StackTrace</a> implementation.</p> <p><code>Trace</code>s can be parsed from native <a href="https://api.dart.dev/stable/dart-core/StackTrace-class.html">StackTrace</a>s using <code>Trace.from</code>, or captured using <code>Trace.current</code>. Native <a href="https://api.dart.dev/stable/dart-core/StackTrace-class.html">StackTrace</a>s can also be directly converted to human-readable strings using <code>Trace.format</code>.</p> <p>Here's an example native stack trace from debugging this library:</p> <pre><code>#0 Object.noSuchMethod (dart:core-patch:1884:25) #1 Trace.terse.&lt;anonymous closure&gt; (file:///usr/local/google-old/home/goog/dart/dart/pkg/stack_trace/lib/src/trace.dart:47:21) #2 IterableMixinWorkaround.reduce (dart:collection:29:29) #3 List.reduce (dart:core-patch:1247:42) #4 Trace.terse (file:///usr/local/google-old/home/goog/dart/dart/pkg/stack_trace/lib/src/trace.dart:40:35) #5 format (file:///usr/local/google-old/home/goog/dart/dart/pkg/stack_trace/lib/stack_trace.dart:24:28) #6 main.&lt;anonymous closure&gt; (file:///usr/local/google-old/home/goog/dart/dart/test.dart:21:29) #7 _CatchErrorFuture._sendError (dart:async:525:24) #8 _FutureImpl._setErrorWithoutAsyncTrace (dart:async:393:26) #9 _FutureImpl._setError (dart:async:378:31) #10 _ThenFuture._sendValue (dart:async:490:16) #11 _FutureImpl._handleValue.&lt;anonymous closure&gt; (dart:async:349:28) #12 Timer.run.&lt;anonymous closure&gt; (dart:async:2402:21) #13 Timer.Timer.&lt;anonymous closure&gt; (dart:async-patch:15:15) </code></pre> <p>and its human-readable representation:</p> <pre><code>dart:core-patch 1884:25 Object.noSuchMethod pkg/stack_trace/lib/src/trace.dart 47:21 Trace.terse.&lt;fn&gt; dart:collection 29:29 IterableMixinWorkaround.reduce dart:core-patch 1247:42 List.reduce pkg/stack_trace/lib/src/trace.dart 40:35 Trace.terse pkg/stack_trace/lib/stack_trace.dart 24:28 format test.dart 21:29 main.&lt;fn&gt; dart:async 525:24 _CatchErrorFuture._sendError dart:async 393:26 _FutureImpl._setErrorWithoutAsyncTrace dart:async 378:31 _FutureImpl._setError dart:async 490:16 _ThenFuture._sendValue dart:async 349:28 _FutureImpl._handleValue.&lt;fn&gt; dart:async 2402:21 Timer.run.&lt;fn&gt; dart:async-patch 15:15 Timer.Timer.&lt;fn&gt; </code></pre> <p>You can further clean up the stack trace using <code>Trace.terse</code>. This folds together multiple stack frames from the Dart core libraries, so that only the core library method that was directly called from user code is visible. For example:</p> <pre><code>dart:core Object.noSuchMethod pkg/stack_trace/lib/src/trace.dart 47:21 Trace.terse.&lt;fn&gt; dart:core List.reduce pkg/stack_trace/lib/src/trace.dart 40:35 Trace.terse pkg/stack_trace/lib/stack_trace.dart 24:28 format test.dart 21:29 main.&lt;fn&gt; </code></pre> <h2 class="hash-header" id="stack-chains">Stack Chains <a href="#stack-chains" class="hash-link">#</a></h2> <p>This library also provides the ability to capture "stack chains" with the <code>Chain</code> class. When writing asynchronous code, a single stack trace isn't very useful, since the call stack is unwound every time something async happens. A stack chain tracks stack traces through asynchronous calls, so that you can see the full path from <code>main</code> down to the error.</p> <p>To use stack chains, just wrap the code that you want to track in <code>Chain.capture</code>. This will create a new <a href="https://api.dart.dev/stable/dart-async/Zone-class.html">Zone</a> in which stack traces are recorded and woven into chains every time an asynchronous call occurs. Zones are sticky, too, so any asynchronous operations started in the <code>Chain.capture</code> callback will have their chains tracked, as will asynchronous operations they start and so on.</p> <p>Here's an example of some code that doesn't capture its stack chains:</p> <pre><code class="language-dart">import 'dart:async'; void main() { _scheduleAsync(); } void _scheduleAsync() { Future.delayed(Duration(seconds: 1)).then((_) =&gt; _runAsync()); } void _runAsync() { throw 'oh no!'; } </code></pre> <p>If we run this, it prints the following:</p> <pre><code>Unhandled exception: oh no! #0 _runAsync (file:///Users/kevmoo/github/stack_trace/example/example.dart:12:3) #1 _scheduleAsync.&lt;anonymous closure&gt; (file:///Users/kevmoo/github/stack_trace/example/example.dart:8:52) &lt;asynchronous suspension&gt; </code></pre> <p>Notice how there's no mention of <code>main</code> in that stack trace. All we know is that the error was in <code>runAsync</code>; we don't know why <code>runAsync</code> was called.</p> <p>Now let's look at the same code with stack chains captured:</p> <pre><code class="language-dart">import 'dart:async'; import 'package:stack_trace/stack_trace.dart'; void main() { Chain.capture(_scheduleAsync); } void _scheduleAsync() { Future.delayed(Duration(seconds: 1)).then((_) =&gt; _runAsync()); } void _runAsync() { throw 'oh no!'; } </code></pre> <p>Now if we run it, it prints this:</p> <pre><code>Unhandled exception: oh no! example/example.dart 14:3 _runAsync example/example.dart 10:52 _scheduleAsync.&lt;fn&gt; package:stack_trace/src/stack_zone_specification.dart 126:26 StackZoneSpecification._registerUnaryCallback.&lt;fn&gt;.&lt;fn&gt; package:stack_trace/src/stack_zone_specification.dart 208:15 StackZoneSpecification._run package:stack_trace/src/stack_zone_specification.dart 126:14 StackZoneSpecification._registerUnaryCallback.&lt;fn&gt; dart:async/zone.dart 1406:47 _rootRunUnary dart:async/zone.dart 1307:19 _CustomZone.runUnary ===== asynchronous gap =========================== dart:async/zone.dart 1328:19 _CustomZone.registerUnaryCallback dart:async/future_impl.dart 315:23 Future.then example/example.dart 10:40 _scheduleAsync package:stack_trace/src/chain.dart 97:24 Chain.capture.&lt;fn&gt; dart:async/zone.dart 1398:13 _rootRun dart:async/zone.dart 1300:19 _CustomZone.run dart:async/zone.dart 1803:10 _runZoned dart:async/zone.dart 1746:10 runZoned package:stack_trace/src/chain.dart 95:12 Chain.capture example/example.dart 6:9 main dart:isolate-patch/isolate_patch.dart 297:19 _delayEntrypointInvocation.&lt;fn&gt; dart:isolate-patch/isolate_patch.dart 192:12 _RawReceivePortImpl._handleMessage </code></pre> <p>That's a lot of text! If you look closely, though, you can see that <code>main</code> is listed in the first trace in the chain.</p> <p>Thankfully, you can call <code>Chain.terse</code> just like <code>Trace.terse</code> to get rid of all the frames you don't care about. The terse version of the stack chain above is this:</p> <pre><code>test.dart 17:3 runAsync test.dart 13:28 scheduleAsync.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _Future.then test.dart 13:12 scheduleAsync test.dart 7:18 main.&lt;fn&gt; package:stack_trace Chain.capture test.dart 6:16 main </code></pre> <p>That's a lot easier to understand!</p> </section></div></div></div><aside class="detail-info-box"><a class="packages-scores" href="/packages/stack_trace/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">300</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">6.45M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/tools.dart.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-v0koh7hq/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>tools.dart.dev</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="AMK3ZzrBFgC+URYAIZwWAA/YFgBpmRQAWBcUAPv8EgAIjQoA1rgMANjVEwBMBhYAtBwTAMLwEQB13RIApPwRAJ8KEgCAuxMAAcIVAGLzEgApQRIAlnwSAIMJEQCFKQ4Aq+QQALl5DwBnmBAAoWMRACnpDgDSEhAAvi4QALJJDwB9+Q4AgxIQAM/nDgBkHBIAtk4PAGWWDwAtrg8ATtIOAH9sEADzLhAAHu8OABxEDgAP/RIAgngRACYbEACV4BAA01gPAEupEADAOBAApMERAAmtEAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>A package for manipulating stack traces and printing them readably.</p><p><a class="link" href="https://github.com/dart-lang/tools/tree/main/pkgs/stack_trace" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/dart-lang/tools/blob/main/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/stack_trace/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-v0koh7hq/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>BSD-3-Clause (<a href="/packages/stack_trace/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/path" title="^1.8.0">path</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Astack_trace" rel="nofollow">Packages that depend on stack_trace</a></p></aside></div><script type="application/ld+json">{"@context":"http\u003a\u002f\u002fschema.org","@type":"SoftwareSourceCode","name":"stack\u005ftrace","version":"1.12.1","description":"stack\u005ftrace - A package for manipulating stack traces and printing them readably.","url":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fstack\u005ftrace","dateCreated":"2013-04-03T17\u003a57\u003a07.850Z","dateModified":"2024-12-20T13\u003a31\u003a01.144563Z","programmingLanguage":"Dart","image":"https\u003a\u002f\u002fpub.dev\u002fstatic\u002fimg\u002fpub-dev-icon-cover-image.png","license":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002fstack\u005ftrace\u002flicense"}</script></div><div class="detail-metadata"><h3 class="detail-metadata-title"><span class="detail-metadata-toggle">←</span> Metadata</h3><div class="detail-info-box"><a class="packages-scores" href="/packages/stack_trace/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">300</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">likes</div></div><div class="packages-score packages-score-health"><div class="packages-score-value -has-value"><span class="packages-score-value-number">160</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">points</div></div><div class="packages-score packages-score-downloads" title="Number of downloads of this package during the past 30 days"><div class="packages-score-value -has-value"><span class="packages-score-value-number">6.45M</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><h3 class="title">Publisher</h3><p><a href="/publishers/tools.dart.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-v0koh7hq/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>tools.dart.dev</a></p><h3 class="title">Weekly Downloads</h3><div id="-weekly-downloads-sparkline" class="weekly-downloads-sparkline" data-widget="weekly-sparkline" data-weekly-sparkline-points="AMK3ZzrBFgC+URYAIZwWAA/YFgBpmRQAWBcUAPv8EgAIjQoA1rgMANjVEwBMBhYAtBwTAMLwEQB13RIApPwRAJ8KEgCAuxMAAcIVAGLzEgApQRIAlnwSAIMJEQCFKQ4Aq+QQALl5DwBnmBAAoWMRACnpDgDSEhAAvi4QALJJDwB9+Q4AgxIQAM/nDgBkHBIAtk4PAGWWDwAtrg8ATtIOAH9sEADzLhAAHu8OABxEDgAP/RIAgngRACYbEACV4BAA01gPAEupEADAOBAApMERAAmtEAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>A package for manipulating stack traces and printing them readably.</p><p><a class="link" href="https://github.com/dart-lang/tools/tree/main/pkgs/stack_trace" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/dart-lang/tools/blob/main/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/stack_trace/latest/">API reference</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-v0koh7hq/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>BSD-3-Clause (<a href="/packages/stack_trace/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/path" title="^1.8.0">path</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Astack_trace" rel="nofollow">Packages that depend on stack_trace</a></p></div><p class="detail-lead-back"><a class="detail-metadata-toggle">Back</a></p></div><div id="-screenshot-carousel" class="carousel"><fab id="-carousel-prev" class="mdc-fab carousel-prev carousel-nav" data-mdc-auto-init="MDCRipple" title="Previous" data-ga-click-event="screenshot-carousel-prev-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-v0koh7hq/img/keyboard_arrow_left.svg" alt="previous" width="24" height="24" aria-hidden="true"/></fab><div id="-image-container" class="image-container"></div><fab id="-carousel-next" class="mdc-fab carousel-next carousel-nav" data-mdc-auto-init="MDCRipple" title="Next" data-ga-click-event="screenshot-carousel-next-click" tabindex="0"><div class="mdc-fab__ripple"></div><img class="mdc-fab__icon" src="/static/hash-v0koh7hq/img/keyboard_arrow_right.svg" alt="next" width="24" height="24" aria-hidden="true"/></fab><p id="-screenshot-description" class="screenshot-description"></p></div></main><footer class="site-footer"><a class="link" href="https://dart.dev/">Dart language</a><a class="link sep" href="/report?subject=package%3Astack_trace&amp;url=https%3A%2F%2Fpub.dev%2Fpackages%2Fstack_trace">Report package</a><a class="link sep" href="/policy">Policy</a><a class="link sep" href="https://www.google.com/intl/en/policies/terms/">Terms</a><a class="link sep" href="https://developers.google.com/terms/">API Terms</a><a class="link sep" href="/security">Security</a><a class="link sep" href="https://www.google.com/intl/en/policies/privacy/">Privacy</a><a class="link sep" href="/help">Help</a><a class="link icon sep" href="/feed.atom"><img class="inline-icon" src="/static/hash-v0koh7hq/img/rss-feed-icon.svg" alt="RSS" width="20" height="20" title="RSS/atom feed"/></a><a class="link icon github_issue" href="https://github.com/dart-lang/pub-dev/issues/new"><img class="inline-icon" src="/static/hash-v0koh7hq/img/bug-report-white-96px.png" alt="bug report" width="20" height="20" title="Report an issue with this site"/></a></footer><script src="/static/hash-v0koh7hq/highlight/highlight-with-init.js" defer="defer"></script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10