ShortcutSerialization class Null safety

A class used by MenuSerializableShortcut to describe the shortcut for serialization to send to the platform for rendering a PlatformMenuBar.

See also:

Constructors

ShortcutSerialization.character(String character)
Creates a ShortcutSerialization representing a single character.
ShortcutSerialization.modifier(LogicalKeyboardKey trigger, {bool control = false, bool shift = false, bool alt = false, bool meta = false})
Creates a ShortcutSerialization representing a specific LogicalKeyboardKey and modifiers.

Properties

alt bool?
If this shortcut has a trigger, this indicates whether or not the alt modifier needs to be down or not.
read-only
character String?
The character that triggers this shortcut, if any.
read-only
control bool?
If this shortcut has a trigger, this indicates whether or not the control modifier needs to be down or not.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
meta bool?
If this shortcut has a trigger, this indicates whether or not the meta (also known as the Windows or Command key) modifier needs to be down or not.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shift bool?
If this shortcut has a trigger, this indicates whether or not the shift modifier needs to be down or not.
read-only
trigger LogicalKeyboardKey?
The keyboard key that triggers this shortcut, if any.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toChannelRepresentation() Map<String, Object?>
Converts the internal representation to the format needed for a MenuItem to include it in its serialized form for sending to the platform.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited