MenuSerializableShortcut mixin
A mixin allowing a ShortcutActivator to provide data for serialization of the shortcut when sending to the platform.
This is meant for those who have written their own ShortcutActivator subclass, and would like to have it work for menus in a PlatformMenuBar as well.
Keep in mind that there are limits to the capabilities of the platform APIs, and not all kinds of ShortcutActivators will work with them.
See also:
- SingleActivator, a ShortcutActivator which implements this mixin.
- CharacterActivator, another ShortcutActivator which implements this mixin.
- Implemented types
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
triggers
→ Iterable<
LogicalKeyboardKey> ? -
An optional property to provide all the keys that might be the final event
to trigger this shortcut.
no setterinherited
Methods
-
accepts(
KeyEvent event, HardwareKeyboard state) → bool -
Whether the triggering
event
and the keyboardstate
at the time of the event meet required conditions, providing that the event is a triggering event.inherited -
debugDescribeKeys(
) → String -
Returns a description of the key set that is short and readable.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serializeForMenu(
) → ShortcutSerialization - Implement this in a ShortcutActivator subclass to allow it to be serialized for use in a PlatformMenuBar.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited