CarpenterDropdown.icon constructor

const CarpenterDropdown.icon({
  1. Key? key,
  2. required bool open,
  3. required ValueChanged<bool> onOpenChanged,
  4. required String label,
  5. required List<CarpenterMenuItem> items,
  6. required CarpenterIconSource icon,
  7. ActionColorRole colorRole = ActionColorRole.neutral,
  8. ActionProminence prominence = ActionProminence.normal,
  9. ControlSize size = ControlSize.medium,
  10. CarpenterShape shape = CarpenterShape.rounded,
  11. OverlayPlacement placement = OverlayPlacement.bottomStart,
  12. List<OverlayPlacement> fallbackPlacements = const [],
  13. FocusNode? focusNode,
  14. bool autofocus = false,
  15. String? semanticLabel,
})

Implementation

const CarpenterDropdown.icon({
  super.key,
  required this.open,
  required this.onOpenChanged,
  required this.label,
  required this.items,
  required CarpenterIconSource icon,
  this.colorRole = ActionColorRole.neutral,
  this.prominence = ActionProminence.normal,
  this.size = ControlSize.medium,
  this.shape = CarpenterShape.rounded,
  this.placement = OverlayPlacement.bottomStart,
  this.fallbackPlacements = const [],
  this.focusNode,
  this.autofocus = false,
  this.semanticLabel,
}) : icon = icon,
     _iconOnly = true;