widget/kaeru_widget/reactive library
Functions
-
asyncComputed<
T> (Future< T> compute(), {T? defaultValue, T? beforeUpdate()?, bool notifyBeforeUpdate = true, void onError(dynamic)?, bool immediate = false}) → 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
getterfunction. -
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
sourceand triggers thecallbackwhen any of the Listenable objects in the source change. -
watchEffect(
VoidCallback effect) → VoidCallback -
Sets up a reactive effect triggered by
callback.