Function cosmic::iced::widget::pick_list::update

source ยท
pub fn update<'a, T, P, Message>(
    event: Event,
    layout: Layout<'_>,
    cursor: Cursor,
    shell: &mut Shell<'_, Message>,
    on_selected: &dyn Fn(T) -> Message,
    selected: Option<&T>,
    options: &[T],
    state: impl FnOnce() -> &'a mut State<P>,
) -> Status
where T: PartialEq + Clone + 'a, P: Paragraph + 'a,
Expand description

Processes an Event and updates the State of a PickList accordingly.