pub fn match_widget(
child: impl IntoUiNode,
closure: impl FnMut(&mut MatchWidgetChild, UiNodeOp<'_>) + Send + 'static,
) -> UiNodeExpand description
Creates a widget that is implemented as a closure that matches over UiNodeOp and delegates to another child widget.
The returned node will delegate to child like match_node does, and will also delegate UiNode::as_widget.
Note that the closure itself will not run inside WidgetUiNode::with_context.