MenuBoxItem constructor

MenuBoxItem({
  1. required VoidCallback onPressed,
  2. required Widget icon,
  3. required String labelText,
  4. Color bgColor = Colors.white,
})

Creates a menu box item.

Parameters:

  • onPressed: Callback when item is tapped
  • icon: Icon widget to display
  • labelText: Text label for the item
  • bgColor: Background color. Defaults to white

Implementation

MenuBoxItem(
    {required this.onPressed,
    required this.icon,
    required this.labelText,
    this.bgColor = Colors.white});