maybeWatch<T> method
T?
maybeWatch<T>()
Returns the watch value if it exists otherwise null.
Implementation
T? maybeWatch<T>() {
try {
return watch<T>();
} on ProviderNotFoundException {
return null;
}
}