MenuSerializableShortcut mixin Null safety

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:

Mixin Applications

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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