run method

  1. @override
void run()
override

Manually runs the watcher function.

This checks the sources and executes the callback if the condition is met.

Example:

watcher.run(); // Manually trigger check

Implementation

@override
void run() {
  assert(!isDisposed, "Watcher is disposed");
  trigger(sources: null);
}