MenuStyle constructor Null safety

const MenuStyle(
  1. {double width = 200.0,
  2. bool openSubmenusOnHover = true,
  3. Color backgroundColor = Colors.white,
  4. EdgeInsets padding = const EdgeInsets.symmetric(vertical: 8.0)}
)

Style the menus and submenus by implementing a custom MenuStyle.

Implementation

const MenuStyle({
  this.width = 200.0,
  this.openSubmenusOnHover = true,
  this.backgroundColor = Colors.white,
  this.padding = const EdgeInsets.symmetric(vertical: 8.0),
});