functional_listener
An rx like extension methods on ValueListenable type, that lets you work with ValueNotifiers almost like with Streams
4.1.0
19K downloads/mo
#2252 most downloaded on pub.dev
escamoteur/functional_listener
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 months to 1.4 years
Nearly every release is documented
notes for 14 of 15 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
16 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
16 releases · Jul 2020 to Oct 2024Releases
latest 16-
4.1.002 Oct 2024 -
4.0.029 Sep 2024Release notes
Open source →- Following the findings of https://github.com/escamoteur/functional_listener/issues/13 we no longer destroy the listener chain when the last listener is removed. Because this might change the behavior of your app this is seen as a breaking change and therefore the change to 4.0.0. Please observe if this leads to increasing memory usage
-
3.0.019 Jul 2024Release notes
Open source →- added optional error handler for CustomValueNotifier in case one of the listeners throws an Exception
- added
listen() extension method for normal Listenable
-
2.3.128 Feb 2023 -
2.3.028 Feb 2023Release notes
Open source →- added
async()extension method
/// ValueListenable are inherently synchronous. In most cases this is what you /// want. But if for example your ValueListenable gets updated inside a build /// method of a widget which would trigger a rebuild because your widgets is /// listening to the ValueListenable you get an exception that you called setState /// inside a build method. /// By using [async] you push the update of the ValueListenable to the next /// frame. This way you can update the ValueListenable inside a build method /// without getting an exception. ValueListenable<T> async();CustomValueNotifiergot a new propertyasyncNotificationwhich if set to true postpones the notifications of listeners to the end of the frame which can be helpful if you run into Exceptions about 'calling setState inside a build function' e.g. if you monitor theCustomValueNotifierwith the get_it_mixin and you update it inside the build function. Default is false.
- added
-
2.2.024 Feb 2023Release notes
Open source →- added listenerCount to CustomValueNotfier
[2.1.0] - 29.01.2022
- merged several PRs with bugfixes
- adds the
select()method see the readme - adds more
combineLates()variants up to 6 input Listenables
-
2.1.029 Jan 2022Nothing published for this version
-
2.0.207 May 2021Release notes
Open source →- Bugfix: If you resubscribed to one of the Listenables that are returned from the extension functions in this package and then resubscribed it did not rebuild the subcription to it's previous in chain.
-
2.0.105 May 2021 -
2.0.015 Feb 2021 -
2.0.0-nullsafety.103 Dec 2020 pre-releaseNothing published for this version
-
1.1.130 Nov 2020 -
1.1.005 Oct 2020 -
1.0.103 Aug 2020 -
1.0.003 Aug 2020 -
0.8.030 Jul 2020