FindDropdownChip<T> constructor

const FindDropdownChip<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. FindDropdownItemBuilderType<T>? dropdownItemBuilder,
  9. bool showSearchBox = true,
  10. bool showClearButton = false,
  11. FindDropdownValidationType<T>? validate,
  12. InputDecoration? searchBoxDecoration,
  13. Color? backgroundColor,
  14. TextStyle? titleStyle,
  15. WidgetBuilder? emptyBuilder,
  16. WidgetBuilder? loadingBuilder,
  17. ErrorBuilderType? errorBuilder,
  18. BoxConstraints? constraints,
  19. bool? autofocus,
  20. int? searchBoxMaxLines,
  21. int? searchBoxMinLines,
  22. ButtonBuilderType? okButtonBuilder,
  23. bool labelVisible = true,
  24. FindDropdownThemeData? theme,
  25. FindDropdownChipBuilderType<T>? chipBuilder,
})

Implementation

const FindDropdownChip({
  super.key,
  required FindDropdownChangedType<T?> onChanged,
  this.label,
  this.labelStyle,
  this.items,
  this.selectedItem,
  this.onFind,
  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,
  this.theme,
  this.chipBuilder,
  // ignore: prefer_initializing_formals
})  : onChanged = onChanged,
      validateMultipleItems = null,
      multipleSelectedItems = null,
      onMultipleItemsChanged = null;