BubbleMenuItem constructor
const
BubbleMenuItem({
- String? label,
- Widget? icon,
- Widget? child,
- BubbleMenuItemCallback? onSelected,
- bool enabled = true,
- TextStyle? textStyle,
- double height = kMinInteractiveDimension,
- 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.',
);