CNPopupMenuButton constructor

const CNPopupMenuButton({
  1. Key? key,
  2. required String? buttonLabel,
  3. required List<CNPopupMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. Color? tint,
  6. double height = 32.0,
  7. bool shrinkWrap = false,
  8. 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;