FlutterReadonlySignalUtils<T> extension

Signal extensions

on

Methods

listen(BuildContext context, void callback(), {String? debugLabel}) → void

Available on ReadonlySignal<T>, provided by the FlutterReadonlySignalUtils extension

Used to listen for updates on a signal but not rebuild the nearest element
toValueListenable() ValueListenable<T>

Available on ReadonlySignal<T>, provided by the FlutterReadonlySignalUtils extension

Convert a signal to ValueListenable to be used in builders and other existing widgets like ValueListenableBuilder
unwatch(BuildContext context) → void

Available on ReadonlySignal<T>, provided by the FlutterReadonlySignalUtils extension

Stop subscriptions to updates on a signal for watchers
watch(BuildContext context, {String? debugLabel}) → T

Available on ReadonlySignal<T>, provided by the FlutterReadonlySignalUtils extension

Rebuild the Element that the current signal is inside of