watch<T> method

T watch<T>(
  1. ZenithNode<T> node
)

Reads the current value of node, subscribing to future updates (when used inside ZenithAuthorizeView).

Implementation

T watch<T>(ZenithNode<T> node) {
  _cache[node] = node.value;
  return node.value;
}