BasePullDownButtonAnchor constructor

const BasePullDownButtonAnchor({
  1. Key? key,
  2. required String? buttonLabel,
  3. required List<CNPullDownMenuEntry> items,
  4. required ValueChanged<int> onSelected,
  5. Color? tint,
  6. double height = 44.0,
  7. double? width,
  8. CNButtonStyle buttonStyle = CNButtonStyle.plain,
  9. String? menuTitle,
  10. Alignment alignment = Alignment.center,
  11. BaseParam? baseParam,
})

Creates a text-labeled pull-down button with automatic anchoring

Implementation

const BasePullDownButtonAnchor({
  Key? key,
  required this.buttonLabel,
  required this.items,
  required this.onSelected,
  this.tint,
  this.height = 44.0,
  this.width,
  this.buttonStyle = CNButtonStyle.plain,
  this.menuTitle,
  this.alignment = Alignment.center,
  BaseParam? baseParam,
})  : buttonIcon = null,
      size = 44.0,
      super(key: key, baseParam: baseParam);