Skip to main content

ValueWidgetBuilder

Type Alias ValueWidgetBuilder 

Source
pub type ValueWidgetBuilder<T> = Rc<dyn Fn(&mut App, AnyElement, &T, Option<&Rc<dyn Widget>>) -> Rc<dyn Widget>>;
Expand description

Builds a Widget when given a concrete value of a ValueListenable<T>.

If the child parameter provided to the ValueListenableBuilder is not null, the same child widget is passed back to this ValueWidgetBuilder and should typically be incorporated in the returned widget tree.

See also:

Aliased Typeยง

pub struct ValueWidgetBuilder<T> { /* private fields */ }