CINXE.COM

replay_bloc | 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-mh7qv2oc/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="An extension to the bloc state management library which adds support for undo and redo."/><meta name="twitter:image" content="https://pub.dev/static/hash-mh7qv2oc/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="replay_bloc | Dart package"/><meta property="og:description" content="An extension to the bloc state management library which adds support for undo and redo."/><meta property="og:image" content="https://pub.dev/static/hash-mh7qv2oc/img/pub-dev-icon-cover-image.png"/><meta property="og:url" content="https://pub.dev/packages/replay_bloc"/><title>replay_bloc | 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"/><meta rel="apple-touch-icon" href="/static/hash-mh7qv2oc/img/apple-touch-icon.png"/><meta rel="apple-touch-icon-precomposed" href="/static/hash-mh7qv2oc/img/apple-touch-icon.png"/><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/replay_bloc"/><meta name="description" content="An extension to the bloc state management library which adds support for undo and redo."/><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-mh7qv2oc/material/bundle/styles.css"/><link rel="stylesheet" type="text/css" href="/static/hash-mh7qv2oc/css/style.css"/><script src="/static/hash-mh7qv2oc/material/bundle/script.min.js" defer="defer"></script><script src="/static/hash-mh7qv2oc/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="eyJwa2dEYXRhIjp7InBhY2thZ2UiOiJyZXBsYXlfYmxvYyIsInZlcnNpb24iOiIwLjMuMCIsImxpa2VzIjoxODEsInB1Ymxpc2hlcklkIjoiYmxvY2xpYnJhcnkuZGV2IiwiaXNEaXNjb250aW51ZWQiOmZhbHNlLCJpc0xhdGVzdCI6dHJ1ZX0sInNlc3Npb25Bd2FyZSI6ZmFsc2V9"/><link rel="preload" href="/static/hash-mh7qv2oc/highlight/highlight-with-init.js" as="script"/></head><body class="light-theme"><script src="/static/hash-mh7qv2oc/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-mh7qv2oc/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-mh7qv2oc/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-mh7qv2oc/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-mh7qv2oc/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">replay_bloc 0.3.0 <span class="pkg-page-title-copy"><img class="pub-monochrome-icon pkg-page-title-copy-icon filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/content-copy-icon.svg" alt="copy &quot;replay_bloc: ^0.3.0&quot; to clipboard" width="18" height="18" title="Copy &quot;replay_bloc: ^0.3.0&quot; to clipboard" data-copy-content="replay_bloc: ^0.3.0" data-ga-click-event="copy-package-version"/><div class="pkg-page-title-copy-feedback"><span class="code">replay_bloc: ^0.3.0</span> copied to clipboard</div></span></h1><div class="metadata">Published <span><a class="-x-ago" href="" title="Jan 12, 2025" role="button" data-timestamp="1736718627559">2 months ago</a></span> • <a class="-pub-publisher" href="/publishers/bloclibrary.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>bloclibrary.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-mh7qv2oc/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-mh7qv2oc/img/like-active.svg" alt="liked status: active" width="18" height="18"/></button><span class="likes-count"><span id="likes-count">181</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">An extension to the bloc state management library which adds support for undo and redo.</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/replay_bloc/changelog" role="button">Changelog</a></li><li class="detail-tab tab-link detail-tab-example-title"><a href="/packages/replay_bloc/example" role="button">Example</a></li><li class="detail-tab tab-link detail-tab-installing-title"><a href="/packages/replay_bloc/install" role="button">Installing</a></li><li class="detail-tab tab-link detail-tab-versions-title"><a href="/packages/replay_bloc/versions" role="button">Versions</a></li><li class="detail-tab tab-link detail-tab-analysis-title"><a href="/packages/replay_bloc/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 align="center"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/logos/replay_bloc.png" height="100" alt="ReplayBloc"></p> <p align="center"> <a href="https://pub.dev/packages/replay_bloc"><img src="https://img.shields.io/pub/v/replay_bloc.svg" alt="Pub"></a> <a href="https://github.com/felangel/bloc/actions" rel="ugc"><img src="https://github.com/felangel/bloc/workflows/build/badge.svg" alt="build"></a> <a href="https://codecov.io/gh/felangel/bloc" rel="ugc"><img src="https://codecov.io/gh/felangel/Bloc/branch/master/graph/badge.svg" alt="codecov"></a> <a href="https://github.com/felangel/bloc" rel="ugc"><img src="https://img.shields.io/github/stars/felangel/bloc.svg?style=flat&amp;logo=github&amp;colorB=deeppink&amp;label=stars" alt="Star on Github"></a> <a href="https://flutter.dev/docs/development/data-and-backend/state-mgmt/options#bloc--rx"><img src="https://img.shields.io/badge/flutter-website-deepskyblue.svg" alt="Flutter Website"></a> <a href="https://github.com/Solido/awesome-flutter#standard" rel="ugc"><img src="https://img.shields.io/badge/awesome-flutter-blue.svg?longCache=true" alt="Awesome Flutter"></a> <a href="https://fluttersamples.com" rel="ugc"><img src="https://img.shields.io/badge/flutter-samples-teal.svg?longCache=true" alt="Flutter Samples"></a> <a href="https://opensource.org/licenses/MIT" rel="ugc"><img src="https://img.shields.io/badge/license-MIT-purple.svg" alt="License: MIT"></a> <a href="https://discord.gg/bloc" rel="ugc"><img src="https://img.shields.io/discord/649708778631200778.svg?logo=discord&amp;color=blue" alt="Discord"></a> <a href="https://github.com/felangel/bloc" rel="ugc"><img src="https://tinyurl.com/bloc-library" alt="Bloc Library"></a> </p> <p>An extension to <a href="https://github.com/felangel/bloc" rel="ugc">package:bloc</a> which adds automatic undo and redo support to bloc and cubit states. Built to work with <a href="https://pub.dev/packages/bloc">package:bloc</a>.</p> <p><strong>Learn more at <a href="https://bloclibrary.dev" rel="ugc">bloclibrary.dev</a>!</strong></p> <hr> <h2 id="sponsors" class="hash-header">Sponsors <a href="#sponsors" class="hash-link">#</a></h2> <p>Our top sponsors are shown below! [<a href="https://github.com/sponsors/felangel" rel="ugc">Become a Sponsor</a>]</p> <table> <tbody> <tr> <td align="center"> <a href="https://shorebird.dev" rel="ugc"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/sponsors/shorebird.png" width="225"></a> </td> <td align="center"> <a href="https://www.monterail.com/services/flutter-development/?utm_source=bloc&amp;utm_medium=logo&amp;utm_campaign=flutter" rel="ugc"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/sponsors/monterail.png" width="225"></a> </td> <td align="center"> <a href="https://getstream.io/chat/flutter/tutorial/?utm_source=Github&amp;utm_medium=Github_Repo_Content_Ad&amp;utm_content=Developer&amp;utm_campaign=Github_Jan2022_FlutterChat&amp;utm_term=bloc" rel="ugc"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/sponsors/stream.png" width="225"></a> </td> </tr> <tr> <td align="center"> <a href="https://www.miquido.com/flutter-development-company/?utm_source=github&amp;utm_medium=sponsorship&amp;utm_campaign=bloc-silver-tier&amp;utm_term=flutter-development-company&amp;utm_content=miquido-logo" rel="ugc"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/sponsors/miquido.png" width="225"></a> </td> <td align="center"> <a href="https://www.netguru.com/services/flutter-app-development?utm_campaign=%5BS%5D%5BMob%5D%20Flutter&amp;utm_source=github&amp;utm_medium=sponsorship&amp;utm_term=bloclibrary" rel="ugc"><img src="https://raw.githubusercontent.com/felangel/bloc/master/assets/sponsors/netguru.png" width="225"></a> </td> </tr> </tbody> </table> <hr> <h2 id="creating-a-replaycubit" class="hash-header">Creating a ReplayCubit <a href="#creating-a-replaycubit" class="hash-link">#</a></h2> <pre><code class="language-dart">class CounterCubit extends ReplayCubit&lt;int&gt; { CounterCubit() : super(0); void increment() =&gt; emit(state + 1); } </code></pre> <h2 id="using-a-replaycubit" class="hash-header">Using a ReplayCubit <a href="#using-a-replaycubit" class="hash-link">#</a></h2> <pre><code class="language-dart">void main() { final cubit = CounterCubit(); // trigger a state change cubit.increment(); print(cubit.state); // 1 // undo the change cubit.undo(); print(cubit.state); // 0 // redo the change cubit.redo(); print(cubit.state); // 1 } </code></pre> <h2 id="replaycubitmixin" class="hash-header">ReplayCubitMixin <a href="#replaycubitmixin" class="hash-link">#</a></h2> <p>If you wish to be able to use a <code>ReplayCubit</code> in conjuction with a different type of cubit like <code>HydratedCubit</code>, you can use the <code>ReplayCubitMixin</code>.</p> <pre><code class="language-dart">class CounterCubit extends HydratedCubit&lt;int&gt; with ReplayCubitMixin { CounterCubit() : super(0); void increment() =&gt; emit(state + 1); void decrement() =&gt; emit(state - 1); @override int fromJson(Map&lt;String, dynamic&gt; json) =&gt; json['value'] as int; @override Map&lt;String, int&gt; toJson(int state) =&gt; {'value': state}; } </code></pre> <h2 id="creating-a-replaybloc" class="hash-header">Creating a ReplayBloc <a href="#creating-a-replaybloc" class="hash-link">#</a></h2> <pre><code class="language-dart">class CounterEvent extends ReplayEvent {} class CounterIncrementPressed extends CounterEvent {} class CounterDecrementPressed extends CounterEvent {} class CounterBloc extends ReplayBloc&lt;CounterEvent, int&gt; { CounterBloc() : super(0) { on&lt;CounterIncrementPressed&gt;((event, emit) =&gt; emit(state + 1)); on&lt;CounterDecrementPressed&gt;((event, emit) =&gt; emit(state - 1)); } } </code></pre> <h2 id="using-a-replaybloc" class="hash-header">Using a ReplayBloc <a href="#using-a-replaybloc" class="hash-link">#</a></h2> <pre><code class="language-dart">void main() { // trigger a state change final bloc = CounterBloc()..add(CounterIncrementPressed()); // wait for state to update await bloc.stream.first; print(bloc.state); // 1 // undo the change bloc.undo(); print(bloc.state); // 0 // redo the change bloc.redo(); print(bloc.state); // 1 } </code></pre> <h2 id="replayblocmixin" class="hash-header">ReplayBlocMixin <a href="#replayblocmixin" class="hash-link">#</a></h2> <p>If you wish to be able to use a <code>ReplayBloc</code> in conjuction with a different type of cubit like <code>HydratedBloc</code>, you can use the <code>ReplayBlocMixin</code>.</p> <pre><code class="language-dart">sealed class CounterEvent with ReplayEvent {} final class CounterIncrementPressed extends CounterEvent {} final class CounterDecrementPressed extends CounterEvent {} class CounterBloc extends HydratedBloc&lt;CounterEvent, int&gt; with ReplayBlocMixin { CounterBloc() : super(0) { on&lt;CounterIncrementPressed&gt;((event, emit) =&gt; emit(state + 1)); on&lt;CounterDecrementPressed&gt;((event, emit) =&gt; emit(state - 1)); } @override int fromJson(Map&lt;String, dynamic&gt; json) =&gt; json['value'] as int; @override Map&lt;String, int&gt; toJson(int state) =&gt; {'value': state}; } </code></pre> <h2 id="dart-versions" class="hash-header">Dart Versions <a href="#dart-versions" class="hash-link">#</a></h2> <ul> <li>Dart 2: &gt;= 2.14</li> </ul> <h2 id="maintainers" class="hash-header">Maintainers <a href="#maintainers" class="hash-link">#</a></h2> <ul> <li><a href="https://github.com/felangel" rel="ugc">Felix Angelov</a></li> </ul> </section></div></div></div><aside class="detail-info-box"><a class="packages-scores" href="/packages/replay_bloc/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">181</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">10.3k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><div class="detail-screenshot-thumbnail"><div class="thumbnail-container" data-thumbnail="/packages/replay_bloc/versions/0.3.0/gen-res/gen/logo.webp" data-thumbnail-descriptions-json="[&quot;The replay bloc package logo.&quot;]" data-ga-click-event="screenshot-thumbnail-click"><img class="thumbnail-image" src="/packages/replay_bloc/versions/0.3.0/gen-res/gen/190x190/logo.webp" alt="screenshot" title="View screenshots" tabindex="0"/></div><img class="collections-icon" src="/static/hash-mh7qv2oc/img/collections_white_24dp.svg" alt="" width="30" height="30" role="presentation"/></div><h3 class="title">Publisher</h3><p><a href="/publishers/bloclibrary.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>bloclibrary.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="ADjnZ7UIAAA8CgAAAgoAACkJAACdCQAA1ggAAOQHAAC5BgAA7wkAALEKAAA/CgAA4gcAAAMEAACkBAAA+QkAAOIKAAD/CQAAgAkAAJwLAACJCgAAUQkAAJwHAAANCgAASAoAADYLAAD8CgAAqAkAAMIIAAA/DAAA3gcAAEcJAACjCQAA/QYAALIIAAC/CAAAGAkAADMJAAByCQAAlAkAAGYIAADyBwAA1gkAAD0IAAB9BwAAogkAADwKAAD1CAAAbQkAAC4KAAAaCgAA+ggAACULAAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>An extension to the bloc state management library which adds support for undo and redo.</p><p><a class="link" href="https://bloclibrary.dev" rel="ugc">Homepage</a><br/><a class="link" href="https://github.com/felangel/bloc/tree/master/packages/replay_bloc" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/felangel/bloc/issues" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/felangel/bloc/blob/master/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Abloc" rel="nofollow">#bloc</a> <a class="topics-tag" href="/packages?q=topic%3Astate-management" rel="nofollow">#state-management</a> <a class="topics-tag" href="/packages?q=topic%3Areplay" rel="nofollow">#replay</a> <a class="topics-tag" href="/packages?q=topic%3Aundo" rel="nofollow">#undo</a> <a class="topics-tag" href="/packages?q=topic%3Aredo" rel="nofollow">#redo</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/replay_bloc/latest/">API reference</a><br/></p><h3 class="title">Funding</h3><p>Consider supporting this project:<br/><br/><a class="link" href="https://github.com/sponsors/felangel" rel="ugc">github.com</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>MIT (<a href="/packages/replay_bloc/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/bloc" title="^9.0.0">bloc</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Areplay_bloc" rel="nofollow">Packages that depend on replay_bloc</a></p></aside></div><script type="application/ld+json">{"@context":"http\u003a\u002f\u002fschema.org","@type":"SoftwareSourceCode","name":"replay\u005fbloc","version":"0.3.0","description":"replay\u005fbloc - An extension to the bloc state management library which adds support for undo and redo.","url":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002freplay\u005fbloc","dateCreated":"2020-07-04T04\u003a12\u003a36.811358Z","dateModified":"2025-01-12T21\u003a50\u003a27.559100Z","programmingLanguage":"Dart","image":"https\u003a\u002f\u002fpub.dev\u002fstatic\u002fimg\u002fpub-dev-icon-cover-image.png","license":"https\u003a\u002f\u002fpub.dev\u002fpackages\u002freplay\u005fbloc\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/replay_bloc/score"><div class="packages-score packages-score-like"><div class="packages-score-value -has-value"><span class="packages-score-value-number">181</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">10.3k</span><span class="packages-score-value-sign"></span></div><div class="packages-score-label">downloads</div></div></a><div class="detail-screenshot-thumbnail"><div class="thumbnail-container" data-thumbnail="/packages/replay_bloc/versions/0.3.0/gen-res/gen/logo.webp" data-thumbnail-descriptions-json="[&quot;The replay bloc package logo.&quot;]" data-ga-click-event="screenshot-thumbnail-click"><img class="thumbnail-image" src="/packages/replay_bloc/versions/0.3.0/gen-res/gen/190x190/logo.webp" alt="screenshot" title="View screenshots" tabindex="0"/></div><img class="collections-icon" src="/static/hash-mh7qv2oc/img/collections_white_24dp.svg" alt="" width="30" height="30" role="presentation"/></div><h3 class="title">Publisher</h3><p><a href="/publishers/bloclibrary.dev"><img class="-pub-publisher-shield filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/material-icon-verified.svg" alt="verified publisher" width="14" height="14" title="Published by a pub.dev verified publisher"/>bloclibrary.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="ADjnZ7UIAAA8CgAAAgoAACkJAACdCQAA1ggAAOQHAAC5BgAA7wkAALEKAAA/CgAA4gcAAAMEAACkBAAA+QkAAOIKAAD/CQAAgAkAAJwLAACJCgAAUQkAAJwHAAANCgAASAoAADYLAAD8CgAAqAkAAMIIAAA/DAAA3gcAAEcJAACjCQAA/QYAALIIAAC/CAAAGAkAADMJAAByCQAAlAkAAGYIAADyBwAA1gkAAD0IAAB9BwAAogkAADwKAAD1CAAAbQkAAC4KAAAaCgAA+ggAACULAAA="></div><h3 class="title pkg-infobox-metadata">Metadata</h3><p>An extension to the bloc state management library which adds support for undo and redo.</p><p><a class="link" href="https://bloclibrary.dev" rel="ugc">Homepage</a><br/><a class="link" href="https://github.com/felangel/bloc/tree/master/packages/replay_bloc" rel="ugc">Repository (GitHub)</a><br/><a class="link" href="https://github.com/felangel/bloc/issues" rel="ugc">View&#47;report issues</a><br/><a class="link" href="https://github.com/felangel/bloc/blob/master/CONTRIBUTING.md" rel="ugc">Contributing</a><br/></p><h3 class="title">Topics</h3><p><a class="topics-tag" href="/packages?q=topic%3Abloc" rel="nofollow">#bloc</a> <a class="topics-tag" href="/packages?q=topic%3Astate-management" rel="nofollow">#state-management</a> <a class="topics-tag" href="/packages?q=topic%3Areplay" rel="nofollow">#replay</a> <a class="topics-tag" href="/packages?q=topic%3Aundo" rel="nofollow">#undo</a> <a class="topics-tag" href="/packages?q=topic%3Aredo" rel="nofollow">#redo</a></p><h3 class="title">Documentation</h3><p><a class="link" href="/documentation/replay_bloc/latest/">API reference</a><br/></p><h3 class="title">Funding</h3><p>Consider supporting this project:<br/><br/><a class="link" href="https://github.com/sponsors/felangel" rel="ugc">github.com</a><br/></p><h3 class="title">License</h3><p><img class="inline-icon-img filter-invert-on-dark" src="/static/hash-mh7qv2oc/img/material-icon-balance.svg" alt="" width="14" height="14" role="presentation"/>MIT (<a href="/packages/replay_bloc/license">license</a>)</p><h3 class="title">Dependencies</h3><p><a href="/packages/bloc" title="^9.0.0">bloc</a></p><h3 class="title">More</h3><p><a href="/packages?q=dependency%3Areplay_bloc" rel="nofollow">Packages that depend on replay_bloc</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-mh7qv2oc/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-mh7qv2oc/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%3Areplay_bloc&amp;url=https%3A%2F%2Fpub.dev%2Fpackages%2Freplay_bloc">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-mh7qv2oc/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-mh7qv2oc/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-mh7qv2oc/highlight/highlight-with-init.js" defer="defer"></script></body></html>

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