addWatcher method

void addWatcher(
  1. Function f
)

Add a watcher that be called when the value changed

Implementation

void addWatcher(Function f) => _watchers.add(f);