FutureProvider<T> constructor
FutureProvider<T> ({
- required Create<
Future< create,T> ?> - required T initialData,
- Key? key,
- ErrorBuilder<
T> ? catchError, - UpdateShouldNotify<
T> ? updateShouldNotify, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Provides the value of the future create makes, initialData until
it completes.
Implementation
FutureProvider({
required super.create,
required T initialData,
super.key,
ErrorBuilder<T>? catchError,
super.updateShouldNotify,
super.lazy,
super.builder,
super.child,
}) : super(
startListening: _futureStartListening(
initialData: initialData,
catchError: catchError,
),
);