Function iced::widget::lazy

source ·
pub fn lazy<'a, Message, Theme, Renderer, Dependency, View>(
    dependency: Dependency,
    view: impl Fn(&Dependency) -> View + 'a
) -> Lazy<'a, Message, Theme, Renderer, Dependency, View>
where Dependency: Hash + 'a, View: Into<Element<'static, Message, Theme, Renderer>>,
Available on crate feature lazy only.
Expand description

Creates a new Lazy widget with the given data Dependency and a closure that can turn this data into a widget tree.