watch method

void watch(
  1. ReadonlySignal value
)

Watch a signal on am element

Implementation

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