rx_notifier library
Classes
- RxAction
- Send action
- RxBuilder
-
Listen for RxNotifier changes present in the
builder
method.
builder: All RxNotifier used in this function will be automatically signed and this function will be called every time the value of an RxNotifier changes. filter: Filter reactions and prevent unwanted effects.
- RxCallback
- Used to assign effect functions that will react to the reactivity of the declared rxNotifier, similar to the rxObserver function.
- RxDisposer
- Remove all listeners of rxObserver;
-
RxFuture<
T> -
RxList<
T> -
RxMap<
K, V> -
RxNotifier<
T> - Extension to ValueNotifier by transparently applying functional reactive programming (TFRP).
- RxReducer
- The layer responsible for making business decisions to perform actions and modify RxNotifiers;
- RxRoot
-
Responsible for propagating RxNotifier values
as a dependency of a child Widget.
RxRoot should be one of the first Widgets in the Flutter tree. -
RxSet<
T> - RxStore
-
RxStream<
T> - RxValue
-
RxValueListenable<
T> - An interface for subclasses of Listenable that expose a value.
- RxVoid
- Void return
-
ValueListenable<
T> - An interface for subclasses of Listenable that expose a value.
Enums
Mixins
- RxMixin
- Deprecated
Extensions
- ContextSelectionExtension on BuildContext
-
Propagates the changes of the RxNotifier placed in the
body function in this widget.
To use this feature, you need to add RxRoot at the beginning of your application's Widget tree. - ListenableMergeExtension on Listenable
- Merge Listenable objects.
-
RxFutureExtension
on Future<
T> - Convert a Future to RxFuture.
-
RxListExtension
on List<
T> - Convert a List to RxList.
-
RxMapExtension
on Map<
K, V> - Convert a Map to RxMap.
-
RxSetExtension
on Set<
T> - Convert a Set to RxSet.
-
RxStreamExtension
on Stream<
T> - Convert a Stream to RxStream.
-
ValueNotifierParse
on ValueListenable<
T> - Convert a ValueListenable to RxNotifier.
Functions
-
rxNext<
T> (RxValueListenable< T> rx, {Function? onAction, Duration timeLimit = const Duration(seconds: 10)}) → Future<T> -
Wait the next change of a RxNotifier.
The
timeLimit
is 10 seconds by default.onAction
callback execute after register listener. -
rxObserver<
T> (T? body(), {bool filter()?, void effect(T? value)?}) → RxDisposer -
Listen for RxNotifier changes present in the body.
body
: All RxNotifier used in this function will be automatically signed and this function will be called every time the value of an rxNotifier changes.filter
: Filter reactions and prevent unwanted effects.
effect
: Thebody
function generates a value that can be retrieved from the effect function.