SuggestionField constructor

const SuggestionField({
  1. Key? key,
  2. required List items,
  3. required dynamic onSelected(
    1. dynamic value
    ),
  4. double height = 30,
  5. double width = 100,
  6. String label = '',
  7. BoxDecoration decoration = const BoxDecoration(),
  8. InputDecoration inputDecoration = const InputDecoration(),
  9. AlignType alignDropdown = AlignType.fill,
  10. TextAlign alignDropdownText = TextAlign.left,
  11. String? initialValue,
})

Implementation

const SuggestionField({
  super.key,
  required this.items,
  required this.onSelected,
  this.height = 30,
  this.width = 100,
  this.label = '',
  this.decoration = const BoxDecoration(),
  this.inputDecoration = const InputDecoration(),
  this.alignDropdown = AlignType.fill,
  this.alignDropdownText = TextAlign.left,
  this.initialValue,
});