watch method

void watch(
  1. ReadonlySignal value
)

Watch a signal on am element

Implementation

void watch(core.ReadonlySignal value) {
  _watch.putIfAbsent(
    value.globalId,
    () => value.subscribe((val) => rebuild()),
  );
}