future_manager library

Classes

FutureManager<T extends Object>
FutureManager is a wrap around Future and ChangeNotifier
FutureManagerBuilder<T extends Object>
A widget that build base on the state a FutureManager
FutureManagerError
FutureManagerProvider
ManagerCacheOption
ManagerConsumer
Extends this class instead of Stateless widget to access ManagerRef
ManagerConsumerBuilder
Consumer widget for ManagerProvider
ManagerProvider<T extends Object, P>
Create a provider for FutureManager
ManagerRef

Enums

ProcessState
A state that indicate the state of our manager, doesn't reflect on UI
ViewState
A state that control the state of our manager's UI

Mixins

ManagerProviderMixin<T extends StatefulWidget>
Mixin on StatefulWidget's state class to access ManagerRef

Constants

EmptyErrorFunction → const Widget Function(dynamic _)

Typedefs

ErrorCallBack = FutureOr Function(FutureManagerError error)
FutureFunction<T> = Future<T> Function()
ManagerErrorBuilder = Widget Function(FutureManagerError error)
ManagerErrorBuilderProvider = Widget Function(FutureManagerError error, AsyncCallback? onRefresh)
ManagerErrorListener = void Function(FutureManagerError error)
ManagerErrorListenerProvider = void Function(FutureManagerError error, BuildContext context)
ManagerProcessListener<T> = void Function(ProcessState state, T? data)
SuccessCallBack<T> = FutureOr<T> Function(T data)