reactive_notify library

A library for managing reactive state in Flutter applications.

This library provides classes and widgets to manage state reactively, ensuring a single instance of state per type and allowing for state changes to trigger UI updates efficiently.

Classes

ReactiveBuilder<T>
ReactiveBuilder is a widget that listens to a ReactiveNotify and rebuilds itself whenever the value changes. It also provides an option to reset the state to its default value when the widget is disposed.
ReactiveNotify<T>
ReactiveNotify is a class that extends SingletonState to manage global state reactively. It ensures that only a single instance of state per key exists, providing methods to set and reset the state.
ReactiveNotifyCallback<T>
ReactiveNotifyCallback is a class that extends SingletonState to manage global state reactively, with an additional callback function that gets executed whenever the state changes. It ensures that only a single instance of state per type exists, providing methods to set and reset the state.
ReactiveNotifyInitializerCallback<T>
ReactiveNotifyInitializerCallback is a class that extends SingletonState to manage global state reactively, with both an initializer function and a callback function that gets executed whenever the state changes. It ensures that only a single instance of state per key exists, providing methods to set and reset the state.