watch abstract method

void watch(
  1. Listenable listenable
)

Watches the given listenable (i.e. Listenable.addListener) and rebuilds the widget whenever it notifies its listeners.

NOTE: This method must only be called from within the build method of a WatcherWidget, or a Widget that mixes in WatcherMixin / StatefulWatcherMixin.

Implementation

void watch(Listenable listenable);