AppKitComboBox constructor
const
AppKitComboBox({
- Key? key,
- AppKitControlSize controlSize = AppKitControlSize.regular,
- List<
String> ? items, - String? placeholder,
- String? value,
- AppKitComboBoxStyle style = AppKitComboBoxStyle.bordered,
- Color? color,
- TextAlign textAlign = TextAlign.start,
- String? semanticLabel,
- FocusNode? focusNode,
- bool canRequestFocus = true,
- bool autofocus = false,
- bool autocompletes = false,
- ValueChanged<
String> ? onChanged, - bool enabled = true,
- AppKitTextFieldBehavior behavior = AppKitTextFieldBehavior.editable,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- List<
TextInputFormatter> ? inputFormatters, - TextInputType inputType = TextInputType.text,
- double? maxItemsMenuHeight,
Creates an AppKitComboBox widget.
The value
and items
parameters must not be null.
Implementation
const AppKitComboBox({
super.key,
this.controlSize = AppKitControlSize.regular,
this.items,
this.placeholder,
this.value,
this.style = AppKitComboBoxStyle.bordered,
this.color,
this.textAlign = TextAlign.start,
this.semanticLabel,
this.focusNode,
this.canRequestFocus = true,
this.autofocus = false,
this.autocompletes = false,
this.onChanged,
this.enabled = true,
this.behavior = AppKitTextFieldBehavior.editable,
this.maxLength,
this.maxLengthEnforcement,
this.inputFormatters,
this.inputType = TextInputType.text,
this.maxItemsMenuHeight,
});