toValueNotifier method
Convert a ValueListenable to Signal to be used in builders and other existing widgets like ValueListenableBuilder and allow for mutation
Implementation
ValueNotifier<T> toValueNotifier() {
final notifier = ValueNotifier(value);
subscribe((_) => notifier.value = value);
notifier.addListener(() => value = notifier.value);
return notifier;
}