isPaused property

  1. @override
bool get isPaused
override

Whether this watcher is currently paused.

When a watcher is paused, it will not respond to changes in its watched sources. The watcher's dependencies are cleared when paused, and will be re-collected when resumed.

Returns: true if the watcher is paused, false otherwise

Example:

final watcher = Watcher(...);
expect(watcher.isPaused, isFalse);

watcher.pause();
expect(watcher.isPaused, isTrue);

watcher.resume();
expect(watcher.isPaused, isFalse);

Implementation

@override
bool get isPaused => _isPaused;