async_notifier 0.6.0  async_notifier: ^0.6.0 copied to clipboard
async_notifier: ^0.6.0 copied to clipboard
A ValueNotifier for all async states. Listen, notify, and manage loading, error and data in one place.
Changelog #
This project adheres to Semantic Versioning.
0.6.0 Oct 19, 2025 #
- Changes AsyncListenableto a mixin that implementsAsyncSnapshot.
- Changes AsyncNotifierto extend withAsyncListenable.
- Added AsyncSnapshot.errorMessage.
- Removes AsyncListenable.snapshot. Use itself instead.
0.5.0 Dec 14, 2024 #
- Simplifies AsyncNotifier.
- Removes AsyncNotifier.onData.
- Removes AsyncNotifier.onError.
- Removes DataChangedtypedef.
- Removes ErrorCallbacktypedef.
- Added AsyncSnapshotExtension.whenData.
- Added AsyncSnapshotExtension.whenError.
- Updated AsyncValueListenableExtension.asAsync.
- Updated README.md.
- Updated docs.
0.4.0 Dec 02, 2024 #
- Simplifies AsyncNotifier.
- Removes AsyncNotifier.late.
- Removes AsyncNotifiersetters.
- Removes AsyncListenablegetters.
- Removes AsyncListenableextensions.
0.3.2 Feb 06, 2024 #
- Adds requireValueextension toAsyncNotifier. DeprecatesrequireData.
- Adds maybeWhenextension toAsyncNotifier.
- Changes nullable StackTrace?inAsyncSnapshotto be non-nullable.
- Changes AsyncNotifier.whenforFuture<T?>. Now completes withnullinstead of requiring it.
- Changes isReloading. Now considershasErrorin all cases, instead of justhasData.
- Updated tests.
0.2.3 Oct 31, 2023 #
- BREAKING CHANGE: Removed reloadingparameter fromwhenextension. UseisReloadinginsidedataparameter instead.
- Adds skipLoadinginwhenextension.
- Adds whenOrNullextension toAsyncSnapshotextension andAsyncNotifier.
- Adds hasNoneextension toAsyncSnapshotandAsyncNotifier.
- Adds setValueinAsyncNotifierwithnotify = trueoptional parameter.
- Adds setValueas an extension toValueNotifier.
- Adds listenmethod as an extension toValueListenable.
- Adds syncmethod as an extension toListenable.
- Updated documentation of extensions.
- Updated example.
- Updated tests.
0.1.1 Oct 18, 2023 #
- 
Adds cancel()method toAsyncNotifier: Now you can manually unsubscribe to current future! (and stream). This will essentially cancel stream or ignore future result. Setting them to null andConnectionStateto none.
- 
Fixes a problem where the stream wasn't being cast as broadcast correctly. 
- 
Updates futureandstreamsetters to better address initial values.
- 
Updates README.md 
- 
Removes unnecessary asserts on AsyncSnapshotxtension.
0.1.0 Oct 15, 2023 #
- Initial pre-release.