WatchContext extension

Exposes the watch method.

on
  • BuildContext

Methods

watch<T>() → T
Obtain a value from the nearest ancestor provider of type T or T?, and subscribe to the provider.