This project adheres to Semantic Versioning.
- Simplifies
AsyncNotifier
. - Removes
AsyncNotifier.onData
. - Removes
AsyncNotifier.onError
. - Removes
DataChanged
typedef. - Removes
ErrorCallback
typedef. - Added
AsyncSnapshotExtension.whenData
. - Added
AsyncSnapshotExtension.whenError
. - Updated
AsyncValueListenableExtension.asAsync
. - Updated
README.md
. - Updated docs.
- Simplifies
AsyncNotifier
. - Removes
AsyncNotifier.late
. - Removes
AsyncNotifier
setters. - Removes
AsyncListenable
getters. - Removes
AsyncListenable
extensions.
- Adds
requireValue
extension toAsyncNotifier
. DeprecatesrequireData
. - Adds
maybeWhen
extension toAsyncNotifier
. - Changes nullable
StackTrace?
inAsyncSnapshot
to be non-nullable. - Changes
AsyncNotifier.when
forFuture<T?>
. Now completes withnull
instead of requiring it. - Changes
isReloading
. Now considershasError
in all cases, instead of justhasData
. - Updated tests.
- BREAKING CHANGE: Removed
reloading
parameter fromwhen
extension. UseisReloading
insidedata
parameter instead. - Adds
skipLoading
inwhen
extension. - Adds
whenOrNull
extension toAsyncSnapshot
extension andAsyncNotifier
. - Adds
hasNone
extension toAsyncSnapshot
andAsyncNotifier
. - Adds
setValue
inAsyncNotifier
withnotify = true
optional parameter. - Adds
setValue
as an extension toValueNotifier
. - Adds
listen
method as an extension toValueListenable
. - Adds
sync
method as an extension toListenable
. - Updated documentation of extensions.
- Updated example.
- Updated tests.
-
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 andConnectionState
to none. -
Fixes a problem where the stream wasn't being cast as broadcast correctly.
-
Updates
future
andstream
setters to better address initial values. -
Updates README.md
-
Removes unnecessary asserts on
AsyncSnapshot
xtension.
- Initial pre-release.