toSignal method
Convert an existing ValueListenable to ReadonlySignal
Implementation
ReadonlySignal<T> toSignal({String? debugLabel}) {
final s = signal<T>(value, debugLabel: debugLabel);
addListener(() => s.value = value);
return s;
}
Convert an existing ValueListenable to ReadonlySignal
ReadonlySignal<T> toSignal({String? debugLabel}) {
final s = signal<T>(value, debugLabel: debugLabel);
addListener(() => s.value = value);
return s;
}