FlutterReadonlySignalUtils<T> extension

Signal extensions

on

Methods

listen(BuildContext context, void callback(), {String? debugLabel}) → void
Used to listen for updates on a signal but not rebuild the nearest element
toValueListenable() SignalValueListenable<T, ValueListenable<T>, ReadonlySignal<T>>
Convert a signal to ValueListenable to be used in builders and other existing widgets like ValueListenableBuilder
unlisten(BuildContext context, void callback()) → void
Stop subscriptions to updates on a signal for listeners
unwatch(BuildContext context) → void
Stop subscriptions to updates on a signal for watchers
watch(BuildContext context, {String? debugLabel}) → T
Rebuild the Element that the current signal is inside of