afterUpdate method

  1. @override
void afterUpdate(
  1. T oldValue,
  2. T newValue
)
override

Called immediately after a value has been updated.

This method can be used to perform actions or side effects after a state change has occurred. It is called after the internal state has been modified but before any notifications are sent to listeners.

Parameters:

  • oldValue: The previous value before the update
  • newValue: The new current value after the update

Implementation

@override
void afterUpdate(T oldValue, T newValue) {
  print("After update: $oldValue -> $newValue");
}