bloc_helpers library

Classes

AsyncCachedTaskBloc<Parameter, Result>
Helper class to implement asynchronous task Need to implement the run method The result is cached to avoid multiple request to a server for exemple [...]
AsyncTaskBloc<Parameter, Result>
Helper class to implement asynchronous task Need to implement the run method
Bloc
Base of a Bloc pattern class Help implement the dispose method Store the state of the Bloc if disposed or not (see disposed)
CachedRequestBloc<Request, Response>
Helper class to implement asynchronous call to a server Need to implement the request method The response is cached to avoid multiple request to a server for exemple [...]
RequestBloc<Request, Response>
Helper class to implement asynchronous call to a server Need to implement the request method [...]
SelectorBloc<T>
Bloc implementing a selection behavior [...]

Typedefs

TaskHandler<Parameter, Result>(Parameter parameter) → FutureOr<Result>