shortcut property Null safety

MenuSerializableShortcut? shortcut

The optional shortcut that selects this MenuItem.

This shortcut is only enabled when onSelected is set.

Implementation

MenuSerializableShortcut? get shortcut => null;