CNPullDownButton.icon constructor

const CNPullDownButton.icon({
  1. Key? key,
  2. required CNSymbol? buttonIcon,
  3. required List<CNPullDownMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. ValueChanged<int>? onInlineActionSelected,
  6. Color? tint,
  7. double size = 44.0,
  8. CNButtonStyle buttonStyle = CNButtonStyle.glass,
  9. String? menuTitle,
})

Creates a round, icon-only pull-down button.

Implementation

const CNPullDownButton.icon({
  super.key,
  required this.buttonIcon,
  required this.items,
  required this.onSelected,
  this.onInlineActionSelected,
  this.tint,
  double size = 44.0, // button diameter (width = height)
  this.buttonStyle = CNButtonStyle.glass,
  this.menuTitle,
}) : buttonLabel = null,
     round = true,
     width = size,
     height = size,
     shrinkWrap = false,
     super();