composables/watch library
Functions
-
watch$(
Iterable< Listenable?> source, VoidCallback callback, {bool immediate = false}) → VoidCallback -
Sets up a watcher on the given
source
and triggers thecallback
when any of the Listenable objects in the source change. Ifimmediate
is true, thecallback
is triggered immediately after setting up the listener.