MenuLabel constructor

const MenuLabel({
  1. Key? key,
  2. required Widget child,
  3. Widget? trailing,
  4. Widget? leading,
})

Creates a menu label.

Parameters:

  • child (Widget, required): Main content
  • trailing (Widget?): Trailing widget
  • leading (Widget?): Leading icon or widget

Implementation

const MenuLabel({
  super.key,
  required this.child,
  this.trailing,
  this.leading,
});