fountain library Null safety

Classes

Action<TState>
An action is a portion of logic that will alterate the current state of the application.
ActionExecutor<TState>
A middleware that executes all the received actions.
ApplicationStateInheritedProvider<TState>
Context<TState>
A ChangeNotifier that owns the global state of the application.
EmptyApplicationEvent
An event that is dispatched right after initialization.
Event
Fountain<TState>
FountainState<TState>
FunctionAction<TState>
InitApplicationEvent
An event that is dispatched right after initialization.
Middleware<TState>
ProxyAccessor<TState, TChild>
ProxyApplicationContext<TState, TChild>
Service<TState, TService>
ServiceLocator<TState>
A locator that allows to create external services for the current state.
StateProxy<TState, TChild>
Allows descendent to use dispatch an select methods with a TChild child property of the global state, selected by the selector.

Extensions

BuildContextActionsExtensions
BuildContextFountainExtensions

Typedefs

ApplicationFunctionCall<TState> = Stream<Updater<TState>> Function(Context<TState> context)
ApplicationFunctionCanExecute<TState> = bool Function(TState state)
ApplicationFunctionFailed<TState> = Stream<Updater<TState>> Function(Context<TState> context, TState initialState, dynamic error, StackTrace stackTrace)
NextMiddleware<TState> = Stream<TState> Function(Context<TState> context, Event event)
ProxyGetter<TState, TChild> = TChild Function(TState state)
ProxySetter<TState, TChild> = TState Function(TState previousState, TChild child)
Selector<TState, T> = T Function(TState state)
ServiceBuilder<TState, TService> = TService Function(Context<TState> context)
Instanciates a service for the current context.
StateInitializer<TState> = TState Function(BuildContext context)
Updater<TState> = TState Function(TState state)

Exceptions / Errors

ActionNotExecutableException