StreamProvider<T> constructor

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

Creates a Stream from builder and subscribes to it.

The parameter builder must not be null.

Implementation

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