pub enum KeyEventResult {
Handled,
Ignored,
SkipRemainingHandlers,
}Expand description
An enum that describes how to handle a key event handled by a
FocusOnKeyEventCallback.
Variants§
Handled
The key event has been handled, and the event should not be propagated to other key event handlers.
Ignored
The key event has not been handled, and the event should continue to be propagated to other key event handlers, even non-Flutter ones.
SkipRemainingHandlers
The key event has not been handled, but the key event should not be propagated to other key event handlers.
It will be returned to the platform embedding to be propagated to text fields and non-Flutter key event handlers on the platform.
Trait Implementations§
Source§impl Clone for KeyEventResult
impl Clone for KeyEventResult
impl Copy for KeyEventResult
Source§impl Debug for KeyEventResult
impl Debug for KeyEventResult
impl Eq for KeyEventResult
Source§impl PartialEq for KeyEventResult
impl PartialEq for KeyEventResult
impl StructuralPartialEq for KeyEventResult
Auto Trait Implementations§
impl Forget for KeyEventResult
impl Freeze for KeyEventResult
impl Move for KeyEventResult
impl RefUnwindSafe for KeyEventResult
impl Send for KeyEventResult
impl Sync for KeyEventResult
impl Unpin for KeyEventResult
impl UnsafeUnpin for KeyEventResult
impl UnwindSafe for KeyEventResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.