pub type KeyEventCallback = Rc<dyn Fn(&mut App, &KeyEvent) -> bool>;Expand description
The signature for HardwareKeyboard::add_handler, a callback to decide
whether the entire framework handles a key event.
HardwareKeyboard::remove_handler matches the handler by allocation
(Rc::ptr_eq), where Dart matches the function by identity.
Aliased Typeยง
pub struct KeyEventCallback { /* private fields */ }