toValueListenable method
Convert a signal to ValueListenable to be used in builders and other existing widgets like ValueListenableBuilder
Implementation
ValueListenable<T> toValueListenable() {
final notifier = ValueNotifier(this());
subscribe((_) {
notifier.value = this();
});
return notifier;
}