SearchPage<T> constructor
SearchPage<T> ({
- Widget suggestion = const SizedBox(),
- Widget failure = const SizedBox(),
- required ResultBuilder<
T> builder, - required SearchFilter<
T> filter, - required List<
T> items, - bool showItemsOnEmpty = false,
- String? searchLabel,
- ThemeData? barTheme,
- bool itemStartsWith = false,
- bool itemEndsWith = false,
- ValueChanged<
String> ? onQueryUpdate, - TextStyle? searchStyle,
- SortCallback<
T> ? sort,
Implementation
SearchPage({
this.suggestion = const SizedBox(),
this.failure = const SizedBox(),
required this.builder,
required this.filter,
required this.items,
this.showItemsOnEmpty = false,
this.searchLabel,
this.barTheme,
this.itemStartsWith = false,
this.itemEndsWith = false,
this.onQueryUpdate,
this.searchStyle,
this.sort,
}) : super(
searchFieldLabel: searchLabel,
searchFieldStyle: searchStyle,
);