flutter_triple library

Classes

BaseStore<State>
BaseStore abstract class
DispatchedTriple<State>
DispatchedTriple class
EitherAdapter<Left, Right>
EitherAdapter abstract class
HydratedDelegate
HydratedDelegate abstract class
MemoryHydratedDelegate
MemoryHydratedDelegate class implements HydratedDelegate
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
ScopedBuilder<TStore extends BaseStore<TState>, TState>
ScopedBuilder it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
ScopedConsumer<TStore extends BaseStore<TState>, TState>
The typedef TransitionCallback receive Widget Function(BuildContext context, Widget child,) ScopedConsumer it's the type Store
ScopedListener<TStore extends BaseStore<TState>, TState>
ScopedListener it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
Selectors<ErrorRx, StateRx, LoadingRx>
Selectors abstract class
Serializable<T>
Serializable abstract class
Store<State>
Store it's an abstract class that implements Selectors<ValueListenable<Error?>, ValueListenable
Triple<State>
Triple class
TripleBuilder<TStore extends BaseStore<TState>, TState>
TripleBuilder class it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
TripleConsumer<TStore extends BaseStore<TState>, TError extends Object, TState extends Object>
TripleConsumer class it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
TripleListener<TStore extends BaseStore<TState>, TState>
TripleListener class it's the type <TStore extends Store<TError, TState>, TError extends Object, TState extends Object>
TripleObserver
TripleObserver class
ValueListenable<T>
An interface for subclasses of Listenable that expose a value.

Mixins

HydratedMixin<State>
HydratedMixin mixin
MementoMixin<State>
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.

Constants

rxVoid → const RxVoid
Void return

Functions

getTripleResolver<TBaseStore extends BaseStore>() → TBaseStore
The function getTripleResolver it's the type TBaseStore
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: The body function generates a value that can be retrieved from the effect function.
setTripleHydratedDelegate(HydratedDelegate delegate) → void
The function setTripleHydratedDelegate it's the type void and receive the param delegate it's the type HydratedDelegate
setTripleResolver(TripleResolverCallback tripleResolver) → void
The function setTripleResolver it's the type void and receive the param tripleResolver it's the type TripleResolverCallback

Typedefs

Disposer = Future<void> Function()
The typedef Disposer receive Future
TransitionCallback = Widget Function(BuildContext context, Widget child)
The typedef TransitionCallback receive Widget Function(BuildContext context, Widget child,)
TripleCallback = void Function(DispatchedTriple triple)
The typedef TripleCallback receive void Function(DispatchedTriple triple)
TripleResolverCallback = TStore Function<TStore extends Object>()
The typedef TripleResolverCallback receive TStore Function

Exceptions / Errors

TripleException
TripleException class implements Exception