cosmic::iced_widget

Function 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>>,
Expand description

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