watchSafe<T> method

T? watchSafe<T>()

Implementation

T? watchSafe<T>() {
  try {
    return watch<T>();
  } catch (_) {
    return null;
  }
}