overrideWith method

  1. @override
Computed<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 = computed(() => 0);

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

Implementation

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