update method

  1. @override
bool update()
override

Commits pendingValue as the current value.

Returns true when the committed value changed and subscribers may need shallow propagation.

Implementation

@override
bool update() {
  flags &= ReactiveFlags.mutable;

  final oldValue = value;
  return oldValue != (value = pendingValue);
}