PlatformMenu constructor

const PlatformMenu({
  1. required String label,
  2. VoidCallback? onOpen,
  3. VoidCallback? onClose,
  4. required List<PlatformMenuItem> menus,
})

Creates a const PlatformMenu.

The label and menus fields are required.

Implementation

const PlatformMenu({
  required super.label,
  this.onOpen,
  this.onClose,
  required this.menus,
});