onWillSet method
Called before newValue is assigned to node.
- Return a modified value to transform the incoming value before assignment.
- Return
newValueunchanged to allow normal write. - Return
nullto cancel/block the write operation entirely.
Implementation
T? onWillSet(ZenithNode<T> node, T currentValue, T newValue) => newValue;