CNPullDownButton constructor

const CNPullDownButton({
  1. Key? key,
  2. required String? buttonLabel,
  3. required List<CNPullDownMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. ValueChanged<int>? onInlineActionSelected,
  6. Color? tint,
  7. double height = 32.0,
  8. bool shrinkWrap = false,
  9. CNButtonStyle buttonStyle = CNButtonStyle.plain,
  10. String? menuTitle,
})

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;