watch<N extends StateNotifier<S>, S> abstract method

N watch<N extends StateNotifier<S>, S>(
  1. BaseStateNotifierProvider<N, S> providerOrFilter, {
  2. String? tag,
})

A function to read SimpleProvider or a StateProvider and subscribe to the events.

this method returns the Notifier linked to the provider

Implementation

N watch<N extends StateNotifier<S>, S>(
  m.BaseStateNotifierProvider<N, S> providerOrFilter, {
  String? tag,
});