FindDropdown<T> constructor
const
FindDropdown<T> ({
- Key? key,
- required FindDropdownChangedType<
T> onChanged, - String? label,
- TextStyle? labelStyle,
- List<
T> ? items, - T? selectedItem,
- FindDropdownFindType<
T> ? onFind, - FindDropdownBuilderType<
T> ? dropdownBuilder, - FindDropdownItemBuilderType<
T> ? dropdownItemBuilder, - bool showSearchBox = true,
- bool showClearButton = false,
- FindDropdownValidationType<
T> ? validate, - InputDecoration? searchBoxDecoration,
- Color? backgroundColor,
- TextStyle? titleStyle,
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- ErrorBuilderType? errorBuilder,
- BoxConstraints? constraints,
- bool? autofocus,
- int? searchBoxMaxLines,
- int? searchBoxMinLines,
- ButtonBuilderType? okButtonBuilder,
- bool labelVisible = true,
- @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);