AppKitComboBox constructor

const AppKitComboBox({
  1. Key? key,
  2. AppKitControlSize controlSize = AppKitControlSize.regular,
  3. List<String>? items,
  4. String? placeholder,
  5. String? value,
  6. AppKitComboBoxStyle style = AppKitComboBoxStyle.bordered,
  7. Color? color,
  8. TextAlign textAlign = TextAlign.start,
  9. String? semanticLabel,
  10. FocusNode? focusNode,
  11. bool canRequestFocus = true,
  12. bool autofocus = false,
  13. bool autocompletes = false,
  14. ValueChanged<String>? onChanged,
  15. bool enabled = true,
  16. AppKitTextFieldBehavior behavior = AppKitTextFieldBehavior.editable,
  17. int? maxLength,
  18. MaxLengthEnforcement? maxLengthEnforcement,
  19. List<TextInputFormatter>? inputFormatters,
  20. TextInputType inputType = TextInputType.text,
  21. 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,
});