watchBloc<T extends Bloc> method
T
watchBloc<T extends Bloc>()
Similar to the WatchContext.watch
method from the Provider package.
Blocs normally won't automatically redraw the Widget that calls them, unless you specifically watch the BlocNotifier. This is a helper function to remove the boilerplate of retrieving the BlocNotifier and unwrapping it.
Implementation
T watchBloc<T extends Bloc>() => BlocProvider.watch<T>(this);