PlatformProvidedMenuItemType enum Null safety

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

Constructors

PlatformProvidedMenuItemType()
const

Values

about → const PlatformProvidedMenuItemType

The system provided "About" menu item.

On macOS, this is the orderFrontStandardAboutPanel default menu.

PlatformProvidedMenuItemType()
quit → const PlatformProvidedMenuItemType

The system provided "Quit" menu item.

On macOS, this is the terminate default menu.

This menu item will simply exit the application when activated.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()
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.

PlatformProvidedMenuItemType()

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[about, quit, servicesSubmenu, hide, hideOtherApplications, showAllApplications, startSpeaking, stopSpeaking, toggleFullScreen, minimizeWindow, zoomWindow, arrangeWindowsInFront]