TreeNodeUnaryOperatorWithParent<K> typedef

TreeNodeUnaryOperatorWithParent<K> = TreeNode<K>? Function(TreeNode<K>? parent, TreeNode<K> node)

Function that transforms a tree node with parent context.

Similar to TreeNodeUnaryOperator but provides access to the parent node. Useful for operations that need parent-child relationship information.

Implementation

typedef TreeNodeUnaryOperatorWithParent<K> = TreeNode<K>? Function(
    TreeNode<K>? parent, TreeNode<K> node);