overrideWith method
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
Signal<T> overrideWith(T val) {
_version = 0;
_value = val;
_previousValue = null;
return this;
}