didUpdate method

bool didUpdate()

Updates the signal's current value from its pending value.

Returns true if the value changed, false otherwise. Used internally during propagation to commit pending changes.

Implementation

@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
@pragma('wasm:prefer-inline')
bool didUpdate() {
  flags = ReactiveFlags.mutable;
  return !identical(currentValue, currentValue = pendingValue);
}