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