set<T> method

void set<T>(
  1. ZenithNode<T> node,
  2. T value
)

Safely sets node to value only if this ref is still mounted.

Silently drops the update if the underlying scope/container has been disposed, so callers never need to manually check isMounted before mutating state.

Implementation

void set<T>(ZenithNode<T> node, T value) {
  if (!_isMounted) return;
  node.set(value);
}