maybeWatch<T extends Object> static method
Like watch, but returns null instead of throwing when T isn't
registered.
Implementation
static T? maybeWatch<T extends Object>(BuildContext context) {
return _dependOnInheritedDeps(
context, (T, const _ObserveOptions(observeState: true))).tryGet<T>();
}