PopupMenuItem constructor
const
PopupMenuItem({
- required String label,
- String? subtitle,
- Glyph? glyph,
- VoidCallback? onPressed,
- bool danger = false,
- bool? checked,
- bool keepsOpen = false,
- PopupMenuSection? section,
- List<
PopupMenuItem> subItems = const [],
Implementation
const PopupMenuItem({
required this.label,
this.subtitle,
this.glyph,
this.onPressed,
this.danger = false,
this.checked,
this.keepsOpen = false,
this.section,
this.subItems = const [],
});