serializeForMenu method Null safety

  1. @override
ShortcutSerialization serializeForMenu()
override

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

Implementation

@override
ShortcutSerialization serializeForMenu() {
  return ShortcutSerialization.modifier(
    trigger,
    shift: shift,
    alt: alt,
    meta: meta,
    control: control,
  );
}