PlatformProvidedMenuItem constructor

const PlatformProvidedMenuItem({
  1. required PlatformProvidedMenuItemType type,
  2. bool enabled = true,
})

Creates a const PlatformProvidedMenuItem of the appropriate type. Throws if the platform doesn't support the given default menu type.

The type argument is required.

Implementation

const PlatformProvidedMenuItem({required this.type, this.enabled = true})
  : super(label: '');