pub fn widget_state_is_state(
child: impl IntoUiNode,
predicate: impl Fn(StateMapRef<'_, WIDGET>) -> bool + Send + 'static,
deinit: impl Fn(StateMapRef<'_, WIDGET>) -> bool + Send + 'static,
state: impl IntoVar<bool>,
) -> UiNodeExpand description
Helper for declaring state properties that are controlled by values in the widget state map.
The predicate closure is called with the widget state on init and every update, if the returned value changes the state
updates. The deinit closure is called on deinit to get the reset value.