StreamProvider<T>.value constructor

StreamProvider<T>.value({Key key, @required Stream<T> value, T initialData, ErrorBuilder<T> catchError, UpdateShouldNotify<T> updateShouldNotify, Widget child })

Listens to value and expose it to all of StreamProvider descendants.

Implementation

StreamProvider.value({
  Key key,
  @required Stream<T> value,
  T initialData,
  ErrorBuilder<T> catchError,
  UpdateShouldNotify<T> updateShouldNotify,
  Widget child,
}) : this._(
        key: key,
        delegate: SingleValueDelegate(value),
        initialData: initialData,
        catchError: catchError,
        updateShouldNotify: updateShouldNotify,
        child: child,
      );