watch function

VoidCallback watch(
  1. Iterable<Listenable?> source,
  2. VoidCallback callback, {
  3. bool immediate = false,
})

Sets up a watcher on the given source and triggers the callback when any of the Listenable objects in the source change.

Implementation

VoidCallback watch(Iterable<Listenable?> source, VoidCallback callback,
        {bool immediate = false}) =>
    _kaeruContext.watch(source, callback, immediate: immediate);