PopupMenuItem constructor

const PopupMenuItem({
  1. required String label,
  2. String? subtitle,
  3. Glyph? glyph,
  4. VoidCallback? onPressed,
  5. bool danger = false,
  6. bool? checked,
  7. bool keepsOpen = false,
  8. PopupMenuSection? section,
  9. 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 [],
});