Function cosmic::iced_widget::button::update
source ยท pub fn update<'a, Message>(
_id: Id,
event: Event,
layout: Layout<'_>,
cursor: Cursor,
shell: &mut Shell<'_, Message>,
on_press: &Option<Message>,
state: impl FnOnce() -> &'a mut State,
) -> Statuswhere
Message: Clone,