resume abstract method

void resume([
  1. bool tryRun = false
])

Resumes the watcher, re-enabling it to respond to changes.

When resumed, the watcher will:

  • Re-collect dependencies by tracking the watched sources
  • Start responding to changes in watched sources again

Parameters:

  • tryRun: If true, attempts to run the watcher immediately after re-collecting dependencies. If false, only re-collects dependencies without executing the callback.

Example:

final watcher = Watcher(...);
watcher.pause();

// Resume without executing
watcher.resume();

// Resume and try to run immediately
watcher.resume(true);

Implementation

void resume([bool tryRun = false]);