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

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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