SearchPage<T> constructor

SearchPage<T>({
  1. Widget suggestion = const SizedBox(),
  2. Widget failure = const SizedBox(),
  3. required ResultBuilder<T> builder,
  4. required SearchFilter<T> filter,
  5. required List<T> items,
  6. bool showItemsOnEmpty = false,
  7. String? searchLabel,
  8. ThemeData? barTheme,
  9. bool itemStartsWith = false,
  10. bool itemEndsWith = false,
  11. ValueChanged<String>? onQueryUpdate,
  12. TextStyle? searchStyle,
  13. 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,
      );