ValueNotifier
SignalValueNotifier
To create a ValueNotifier
that is also a Signal
:
Setting the value on the signal will update the notifier and vice versa.
Signal from ValueNotifier
To create a mutable signal from a ValueNotifier
, use the toSignal
extension:
Setting the value on the signal or notifier will update the other.
ValueNotifier from Signal
To create a ValueNotifier
from a mutable signal, use the toValueNotifier
extension:
Setting the value on the signal or notifier will update the other.