widget/kaeru_widget/reactive library
Functions
-
asyncComputed<
T> (Future< T> compute()) → AsyncComputed<T> - Creates an instance of AsyncComputed with the given async function.
-
computed<
T> (T compute()) → Computed< T> -
Creates a reactive Computed with the provided
getter
function. -
ref<
T> (T initialValue) → Ref< T> -
Creates a reactive Ref with the given initial
value
. -
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. -
watchEffect(
VoidCallback effect) → VoidCallback -
Sets up a reactive effect triggered by
callback
.