result_notifier 0.3.0+1 result_notifier: ^0.3.0+1 copied to clipboard
Pragmatic state management for Flutter, based on familiar and platform-native concepts
0.1.0 #
- Initial release, with basic ResultNotifier functionality.
0.1.1 #
- Added lint package and fixed analysis warnings.
0.2.0 #
- Updated
setResultAsync
to always return aResult
, even if an error occurs. - Method
cancel
inResultNotifier
no longer accepts aResult
as a parameter. - Updated API of CombineLatestNotifier (changed constructor and added static factory methods) and removed @expermimental annotation.
- Renamed ChainedNotifier to EffectNotifier and removed @expermimental annotation.
- Added effect methods to
ResultNotifier
.
0.2.1 #
- Fixed issue with
Result.toData
(and thusResultNotifier.toData
) not using thedata
parameter correctly.
0.3.0 #
- Added "watch" functionality, i.e. the possibility to observe a
ResultNotifier
(or anyListenable
) in a Widget without using aResultBuilder
orValueListenableBuilder
(a bit similar to howflutter_hooks
works). - Added extension methods on
Iterable<Result>
andIterable<ResultNotifier>
for combining multipleResult
s into a singleResult
, or just combining the data (similar toCombineLatestNotifier
). - Added convenience Records extensions for
Result
andResultNotifier
, enabling typed use ofcombine
andcombineData
methods (seeResultTuple
,ResultListenableTuple
, etc). - Added extension methods on
Iterable<Result>
andIterable<ResultNotifier>
for getting combined statuses ( e.g.isLoading
,isAllLoading
etc). - Introduced the abstract type
ResultListenable
and moved some functionality fromResultNotifier
there. - Added support for transforming a regular
ValueNotifier
/ValueListenable
to aResultListenable
usingValueListenable.toResultListenable()
. - Deprecated
ResultNotifierProvider
- useResourceProvider
(along withwatch
orResultBuilder
) instead. - Made some arguments required in
ResourceProvider
default constructor and added a second constructor (ResourceProvider.custom
) for subclasses. - Made
dispose
method inResourceProvider
optional, and added default implementation that callsdispose()
on the resource.
0.3.0+1 #
- Just documentation updates.