CustomPopupMenuItem constructor

const CustomPopupMenuItem({
  1. Key? key,
  2. required String label,
  3. required Widget icon,
  4. required VoidCallback onTap,
  5. double height = 35,
  6. double? spacing,
  7. Color? foregroundColor,
  8. Color? backgroundColor,
})

A button in the popup

Implementation

const CustomPopupMenuItem({
  super.key,
  required this.label,
  required this.icon,
  required this.onTap,
  this.height = 35,
  this.spacing,
  this.foregroundColor,
  this.backgroundColor,
});