Function cosmic::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>
Expand description
Creates a new Lazy
widget with the given data Dependency
and a
closure that can turn this data into a widget tree.