BarStyle constructor Null safety

const BarStyle(
  1. {double height = 28.0,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. Color backgroundColor = const Color(0xFF424242),
  4. double gap = 0.0,
  5. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 0.0),
  6. bool closeMenuOnHoverLeave = true,
  7. bool openMenuOnHover = false,
  8. Duration closeMenuOnHoverDelay = const Duration(milliseconds: 400)}
)

Style the menu bar itself by implementing a custom BarStyle.

Implementation

const BarStyle({
  this.height = 28.0,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.backgroundColor = const Color(0xFF424242),
  this.gap = 0.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 0.0),
  this.closeMenuOnHoverLeave = true,
  this.openMenuOnHover = false,
  this.closeMenuOnHoverDelay = const Duration(milliseconds: 400),
});