overrideWith method

  1. @override
Signal<T> overrideWith(
  1. T value
)
override

Override the current signal with a new value as if it was created with it

This does not trigger any updates

var counter = signal(0);

// Override the signal with a new value
counter = counter.overrideWith(1);

Implementation

@override
Signal<T> overrideWith(T value) {
  return instance.overrideWith(value);
}