flutter_love
library
Classes
-
Dispatch<Event>
-
Send event
-
Disposer
-
Describe how resources are cleaned
-
LatestContext<Event>
-
-
Moment<State, Event>
-
A holder of state, oldState and event of a moment
-
React<S, E, V>
-
React widget will react to system's partial state change,
then trigger a build with widget builder.
-
ReactState<S, E>
-
ReactState widget will react to system's whole state change,
then trigger a build with widget builder.
-
System<State, Event>
-
Functions
-
combineEffect<State, Event>(Effect<State, Event>? effect, Effect<State, Event>? nextEffect)
→ Effect<State, Event>?
-
-
combineInterceptor<Event>(Interceptor<Event>? interceptor, Interceptor<Event>? nextInterceptor)
→ Interceptor<Event>?
-
-
combineReduce<State, Event>(Reduce<State, Event>? reduce, Reduce<State, Event>? nextReduce)
→ Reduce<State, Event>?
-
-
defaultEquals<T>(T it1, T it2)
→ bool
-
default implementation of
Equals
function
-
safeAs<T, R>(T value)
→ R?
-
Typedefs
-
ContextEffect<Context, State, Event>
= void Function(Context context, State state, State? oldState, Event? event, Dispatch<Event> dispatch)
-
Describe how side effect are performed with a context.
-
CopyRun<State, Event>
= Run<State, Event> Function(Run<State, Event> run)
-
-
Effect<State, Event>
= void Function(State state, State? oldState, Event? event, Dispatch<Event> dispatch)
-
Describe how side effect are performed
-
Equals<T>
= bool Function(T it1, T it2)
-
Describe the equality of two item
-
Interceptor<Event>
= Dispatch<Event> Function(Dispatch<Event> dispatch)
-
Describe how to intercept event
-
InterceptorWithContext<Context, Event>
= void Function(Context context, Dispatch<Event> dispatch, Event event)
-
An event interceptor with a context associated with it
-
Reduce<State, Event>
= State Function(State state, Event event)
-
Describe how state update when event come
-
Run<State, Event>
= Disposer Function({Effect<State, Event>? effect, Interceptor<Event>? interceptor, Reduce<State, Event>? reduce})
-
-
WidgetBuilder<S, E>
= Widget Function(BuildContext context, S state, Dispatch<E> dispatch)
-
Widget Builder with state and dispatch