CNPopupMenuButton constructor
const
CNPopupMenuButton({
- Key? key,
- required String? buttonLabel,
- required List<
CNPopupMenuEntry> items, - required ValueChanged<
int> onSelected, - Color? tint,
- double height = 32.0,
- bool shrinkWrap = false,
- CNButtonStyle buttonStyle = CNButtonStyle.plain,
Creates a text-labeled popup menu button.
Implementation
const CNPopupMenuButton({
super.key,
required this.buttonLabel,
required this.items,
required this.onSelected,
this.tint,
this.height = 32.0,
this.shrinkWrap = false,
this.buttonStyle = CNButtonStyle.plain,
}) : buttonIcon = null,
width = null,
round = false;