createSignal<V> method

Signal<V> createSignal<V>(
  1. V val, {
  2. String? debugLabel,
  3. bool autoDispose = true,
})

Create a signal

Implementation

Signal<V> createSignal<V>(
  V val, {
  String? debugLabel,
  bool autoDispose = true,
}) {
  final s = signal<V>(
    val,
    debugLabel: debugLabel,
    autoDispose: autoDispose,
  );
  _watch(s, true);
  return s;
}