PlatformProvidedMenuItemType enum

The list of possible platform provided, prebuilt menus for use in a PlatformMenuBar.

These are menus that the platform typically provides that cannot be reproduced in Flutter without calling platform functions, but are standard on the platform.

Examples include things like the "Quit" or "Services" menu items on macOS. Not all platforms support all menu item types. Use PlatformProvidedMenuItem.hasMenu to know if a particular type is supported on a the current platform.

Add these to your PlatformMenuBar using the PlatformProvidedMenuItem class.

You can tell if the platform provides the given menu using the PlatformProvidedMenuItem.hasMenu method.

Inheritance

Values

about → const PlatformProvidedMenuItemType

The system provided "About" menu item.

On macOS, this is the orderFrontStandardAboutPanel default menu.

quit → const PlatformProvidedMenuItemType

The system provided "Quit" menu item.

On macOS, this is the terminate default menu.

This menu item will exit the application when activated.

servicesSubmenu → const PlatformProvidedMenuItemType

The system provided "Services" submenu.

This submenu provides a list of system provided application services.

This default menu is only supported on macOS.

hide → const PlatformProvidedMenuItemType

The system provided "Hide" menu item.

This menu item hides the application window.

On macOS, this is the hide default menu.

This default menu is only supported on macOS.

hideOtherApplications → const PlatformProvidedMenuItemType

The system provided "Hide Others" menu item.

This menu item hides other application windows.

On macOS, this is the hideOtherApplications default menu.

This default menu is only supported on macOS.

showAllApplications → const PlatformProvidedMenuItemType

The system provided "Show All" menu item.

This menu item shows all hidden application windows.

On macOS, this is the unhideAllApplications default menu.

This default menu is only supported on macOS.

startSpeaking → const PlatformProvidedMenuItemType

The system provided "Start Dictation..." menu item.

This menu item tells the system to start the screen reader.

On macOS, this is the startSpeaking default menu.

This default menu is currently only supported on macOS.

stopSpeaking → const PlatformProvidedMenuItemType

The system provided "Stop Dictation..." menu item.

This menu item tells the system to stop the screen reader.

On macOS, this is the stopSpeaking default menu.

This default menu is currently only supported on macOS.

toggleFullScreen → const PlatformProvidedMenuItemType

The system provided "Enter Full Screen" menu item.

This menu item tells the system to toggle full screen mode for the window.

On macOS, this is the toggleFullScreen default menu.

This default menu is currently only supported on macOS.

minimizeWindow → const PlatformProvidedMenuItemType

The system provided "Minimize" menu item.

This menu item tells the system to minimize the window.

On macOS, this is the performMiniaturize default menu.

This default menu is currently only supported on macOS.

zoomWindow → const PlatformProvidedMenuItemType

The system provided "Zoom" menu item.

This menu item tells the system to expand the window size.

On macOS, this is the performZoom default menu.

This default menu is currently only supported on macOS.

arrangeWindowsInFront → const PlatformProvidedMenuItemType

The system provided "Bring To Front" menu item.

This menu item tells the system to stack the window above other windows.

On macOS, this is the arrangeInFront default menu.

This default menu is currently only supported on macOS.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PlatformProvidedMenuItemType>
A constant List of the values in this enum, in order of their declaration.