shouldEmit method
Determines whether a value change should trigger a notification to listeners.
This method can be used to filter or throttle updates based on custom logic. If any middleware returns false, the update will not be emitted to the stream.
Parameters:
oldValue: The previous value before the updatenewValue: The new current value after the update
Returns:
trueif the update should be emitted to listenersfalseif the update should be suppressed
Implementation
@override
bool shouldEmit(T oldValue, T newValue) {
return true;
}