ReadonlySignalUtils<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
-
toStream(
) → Stream< T> - Convert a signal to a Stream to be consumed as a read only stream and also be used in a StreamBuilder
-
toValueListenable(
) → ValueListenable< T> - Convert a signal to ValueListenable to be used in builders and other existing widgets like ValueListenableBuilder
-
unlisten(
BuildContext context) → 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