ListSearch<T> constructor
ListSearch<T> ({
- Key? key,
- List<
T> ? items, - ListSearchToString<
T> ? itemAsString, - Mode? mode = Mode.NORMAL,
- T? selectedItem,
- bool? showSearch = true,
- bool? showResultAlways = false,
- bool? showCardView = false,
- bool? overlay = true,
- int? showMaxResult,
- dynamic onChanged(
- T?
- EdgeInsets? padding,
- EdgeInsets? margin,
- TextStyle? inputStyle,
- InputDecoration? inputDecoration,
Implementation
ListSearch({super.key,
this.items,
this.itemAsString,
this.mode = Mode.NORMAL,
this.selectedItem,
this.showSearch = true,
this.showResultAlways = false,
this.showCardView = false,
this.overlay = true,
this.showMaxResult,
this.onChanged,
this.padding,
this.margin,
this.inputStyle,
this.inputDecoration}) {
_itemsDuplicate = items;
}