onSet property
Intercepts value mutations.
Return a wrapped function to modify or log the set operation.
Implementation
@override
LxOnSet? get onSet => (next, reactive, change) {
return (value) {
next(value);
if (_isRestoring) return;
_redoStack.clear();
if (_batchDepth == 0) _addChange(change);
};
};