MenuButtonStyle constructor Null safety
- {bool closeMenuOnClick = true,
- Color backgroundColor = Colors.white,
- double height = 28.0,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12.0),
- TextStyle shortcutTextStyle = const TextStyle(fontSize: 15.0, color: Colors.grey),
Style the menu and submenu buttons by implementing a custom MenuButtonStyle.
Implementation
const MenuButtonStyle({
this.closeMenuOnClick = true,
this.backgroundColor = Colors.white,
this.height = 28.0,
this.padding = const EdgeInsets.symmetric(horizontal: 12.0),
this.shortcutTextStyle =
const TextStyle(fontSize: 15.0, color: Colors.grey),
this.showSubmenuIcon = true,
this.submenuIcon = const Icon(Icons.keyboard_arrow_right),
});