watch<T> method

T watch<T>(
  1. ProviderListenable<T> provider
)

Watches a provider and rebuilds the current context on change

Implementation

T watch<T>(ProviderListenable<T> provider) {
  return InheritedConsumer.watch<T>(this, provider);
}