pub fn data<T>(child: impl IntoUiNode, data: impl IntoVar<T>) -> UiNodewhere
T: VarValue,Expand description
P Data context.
Sets the DATA context for this widget and descendants, replacing the parent’s data.
Note that only one data context can be set at a time, the data will override the parent’s
data even if the type T does not match.