serializeForMenu method Null safety

ShortcutSerialization serializeForMenu()

Implement this in a ShortcutActivator subclass to allow it to be serialized for use in a PlatformMenuBar.

Implementation

ShortcutSerialization serializeForMenu();