signal<T> function
Simple signal that can be created with type T that can read and write a value.
final count = signal(0);
print(count.value); // 0
count.value++;
print(count.value); // 1
Implementation
FlutterSignal<T> signal<T>(
T value, {
String? debugLabel,
bool autoDispose = false,
}) {
return FlutterSignal<T>(
value,
debugLabel: debugLabel,
autoDispose: autoDispose,
);
}