pub fn update<'a, T, Message>(
    event: Event,
    layout: Layout<'_>,
    cursor_position: Point,
    shell: &mut Shell<'_, Message>,
    on_selected: &dyn Fn(T) -> Message,
    selected: Option<&T>,
    options: &[T],
    state: impl FnOnce() -> &'a mut State<T>
) -> Statuswhere
    T: PartialEq + Clone + 'a,
Expand description

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