MenuBoxItem constructor
MenuBoxItem({
- required VoidCallback onPressed,
- required Widget icon,
- required String labelText,
- Color bgColor = Colors.white,
Creates a menu box item.
Parameters:
onPressed: Callback when item is tappedicon: Icon widget to displaylabelText: Text label for the itembgColor: Background color. Defaults to white
Implementation
MenuBoxItem({required this.onPressed, required this.icon, required this.labelText, this.bgColor = Colors.white});