FindDropdown<T> constructor

const FindDropdown<T>({
  1. Key? key,
  2. required FindDropdownChangedType<T> onChanged,
  3. String? label,
  4. TextStyle? labelStyle,
  5. List<T>? items,
  6. T? selectedItem,
  7. FindDropdownFindType<T>? onFind,
  8. FindDropdownBuilderType<T>? dropdownBuilder,
  9. FindDropdownItemBuilderType<T>? dropdownItemBuilder,
  10. bool showSearchBox = true,
  11. bool showClearButton = false,
  12. FindDropdownValidationType<T>? validate,
  13. InputDecoration? searchBoxDecoration,
  14. Color? backgroundColor,
  15. TextStyle? titleStyle,
  16. WidgetBuilder? emptyBuilder,
  17. WidgetBuilder? loadingBuilder,
  18. ErrorBuilderType? errorBuilder,
  19. BoxConstraints? constraints,
  20. bool? autofocus,
  21. int? searchBoxMaxLines,
  22. int? searchBoxMinLines,
  23. ButtonBuilderType? okButtonBuilder,
  24. bool labelVisible = true,
  25. @Deprecated("Use 'hintText' property from searchBoxDecoration") String? searchHint,
})

Implementation

const FindDropdown({
  Key? key,
  required FindDropdownChangedType<T> onChanged,
  this.label,
  this.labelStyle,
  this.items,
  this.selectedItem,
  this.onFind,
  this.dropdownBuilder,
  this.dropdownItemBuilder,
  this.showSearchBox = true,
  this.showClearButton = false,
  this.validate,
  this.searchBoxDecoration,
  this.backgroundColor,
  this.titleStyle,
  this.emptyBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.constraints,
  this.autofocus,
  this.searchBoxMaxLines,
  this.searchBoxMinLines,
  this.okButtonBuilder,
  this.labelVisible = true,
  @Deprecated("Use 'hintText' property from searchBoxDecoration") this.searchHint,
})  : this.onChanged = onChanged,
      this.validateMultipleItems = null,
      this.dropdownMultipleItemsBuilder = null,
      this.multipleSelectedItems = null,
      this.onMultipleItemsChanged = null,
      super(key: key);