CNPopupMenuButton.icon constructor
const
CNPopupMenuButton.icon({
- Key? key,
- required CNSymbol? buttonIcon,
- required List<
CNPopupMenuEntry> items, - required ValueChanged<
int> onSelected, - Color? tint,
- double size = 44.0,
- CNButtonStyle buttonStyle = CNButtonStyle.glass,
Creates a round, icon-only popup menu button.
Implementation
const CNPopupMenuButton.icon({
super.key,
required this.buttonIcon,
required this.items,
required this.onSelected,
this.tint,
double size = 44.0, // button diameter (width = height)
this.buttonStyle = CNButtonStyle.glass,
}) : buttonLabel = null,
round = true,
width = size,
height = size,
shrinkWrap = false,
super();