FutureProvider<T>.value constructor

FutureProvider<T>.value({
  1. Key? key,
  2. required Future<T>? value,
  3. required T initialData,
  4. ErrorBuilder<T>? catchError,
  5. UpdateShouldNotify<T>? updateShouldNotify,
  6. TransitionBuilder? builder,
  7. 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,
      );