CarpenterDropdown.icon constructor
const
CarpenterDropdown.icon({
- Key? key,
- required bool open,
- required ValueChanged<
bool> onOpenChanged, - required String label,
- required List<
CarpenterMenuItem> items, - required CarpenterIconSource icon,
- ActionColorRole colorRole = ActionColorRole.neutral,
- ActionProminence prominence = ActionProminence.normal,
- ControlSize size = ControlSize.medium,
- CarpenterShape shape = CarpenterShape.rounded,
- OverlayPlacement placement = OverlayPlacement.bottomStart,
- List<
OverlayPlacement> fallbackPlacements = const [], - FocusNode? focusNode,
- bool autofocus = false,
- 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;