PlatformProvidedMenuItem constructor Null safety
- {required PlatformProvidedMenuItemType type,
- 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: '');