PlexFormFieldDropdown<T> constructor

PlexFormFieldDropdown<T>({
  1. Key? key,
  2. PlexFormFieldGeneric properties = const PlexFormFieldGeneric.empty(),
  3. List<T>? dropdownItems,
  4. Widget dropDownLeadingIcon(
    1. dynamic item
    )?,
  5. Future<List>? dropdownAsyncItems,
  6. Widget dropdownItemWidget(
    1. dynamic item
    )?,
  7. bool dropdownOnSearch(
    1. String query,
    2. dynamic item
    )?,
  8. String dropdownItemAsString(
    1. dynamic item
    )?,
  9. dynamic dropdownItemOnSelect(
    1. dynamic item
    )?,
  10. PlexWidgetController<T?>? dropdownSelectionController,
  11. Function? dropdownCustomOnTap,
  12. FocusNode? searchInputFocusNode,
  13. String noDataText = "N/A",
  14. T? initialSelection,
  15. bool showClearButton = false,
})

Implementation

PlexFormFieldDropdown(
    {super.key,
    this.properties = const PlexFormFieldGeneric.empty(),
    this.dropdownItems,
    this.dropDownLeadingIcon,
    this.dropdownAsyncItems,
    this.dropdownItemWidget,
    this.dropdownOnSearch,
    this.dropdownItemAsString,
    this.dropdownItemOnSelect,
    this.dropdownSelectionController,
    this.dropdownCustomOnTap,
    this.searchInputFocusNode,
    this.noDataText = "N/A",
    this.initialSelection,
    this.showClearButton = false});