FutureProvider<T>.value constructor
FutureProvider<T>.value ({
- Key? key,
- required Future<
T> ? value, - required T initialData,
- ErrorBuilder<
T> ? catchError, - UpdateShouldNotify<
T> ? updateShouldNotify, - TransitionBuilder? builder,
- Widget? child,
Listens to value
and expose it to all of FutureProvider descendants.
Implementation
FutureProvider.value({
Key? key,
required Future<T>? value,
required T initialData,
ErrorBuilder<T>? catchError,
UpdateShouldNotify<T>? updateShouldNotify,
TransitionBuilder? builder,
Widget? child,
}) : super.value(
key: key,
builder: builder,
lazy: false,
value: value,
updateShouldNotify: updateShouldNotify,
startListening: _futureStartListening(
catchError: catchError,
initialData: initialData,
),
child: child,
);