provider<P extends StreamsProvidable> method

P provider<P extends StreamsProvidable>()

Performs a lookup using the BuildContext to obtain the nearest ancestor StreamProvidable of type P.

Calling this method is equivalent to calling:

StreamsProvider.of<P>(context)

Implementation

P provider<P extends StreamsProvidable>() => StreamsProvider.of<P>(this);