BubbleMenuItem constructor

const BubbleMenuItem({
  1. String? label,
  2. Widget? icon,
  3. Widget? child,
  4. BubbleMenuItemCallback? onSelected,
  5. bool enabled = true,
  6. TextStyle? textStyle,
  7. double height = kMinInteractiveDimension,
  8. EdgeInsets? padding,
})

Creates a menu entry.

Implementation

const BubbleMenuItem({
  this.label,
  this.icon,
  this.child,
  this.onSelected,
  this.enabled = true,
  this.textStyle,
  this.height = kMinInteractiveDimension,
  this.padding,
}) : assert(
       label != null || child != null,
       'BubbleMenuItem needs either a label or a child.',
     );