InternalSearch<W extends AbstractModel<ID> , UI extends AbstractBuilder<W, ID> , C extends AbstractConsumer<W, ID> , ID> class
- Inheritance
-
- Object
- SearchDelegate<
W?> - InternalSearch
Constructors
-
InternalSearch.new({required UI builder, required C consumer, required Widget buildResultItem({Future<
void> afterDeleteRefresh()?, required bool canDelete, required W model, dynamic onTap(W model)?, required bool selected}), required bool canDelete(W), required Map<String, String> extraParams, required bool forceOffline, required int itemsPerPage, required int minLengthToSearch, required String hintText, required String startSearchText, required String waitingText, required String searchListEmpty, required String? searchFieldLabel, required TextStyle? searchFieldStyle, required InputDecorationTheme? searchFieldDecorationTheme, required TextInputType? keyboardType, required TextInputAction textInputAction})
Properties
- autocorrect → bool
-
Whether to enable autocorrection.
finalinherited
- automaticallyImplyLeading ↔ bool?
-
Controls whether we should try to imply the leading widget if null.
getter/setter pairinherited
- builder → UI
-
final
-
buildResultItem
→ Widget Function({Future<
void> afterDeleteRefresh()?, required bool canDelete, required W model, dynamic onTap(W model)?, required bool selected}) -
final
- canDelete → bool Function(W)
-
final
- consumer → C
-
final
- enableSuggestions → bool
-
Whether to show input suggestions as the user types.
finalinherited
-
extraParams
→ Map<
String, String> -
final
- forceOffline → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String
-
final
- itemsPerPage → int
-
final
- keyboardType → TextInputType?
-
The type of action button to use for the keyboard.
finalinherited
- leadingWidth ↔ double?
-
Defines the width of AppBar.leading widget.
getter/setter pairinherited
- minLengthToSearch → int
-
final
- query ↔ String
-
The current query string shown in the AppBar.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFieldDecorationTheme → InputDecorationTheme?
-
The InputDecorationTheme used to configure the search field's visuals.
finalinherited
- searchFieldLabel → String?
-
The hint text that is shown in the search field when it is empty.
finalinherited
- searchFieldStyle → TextStyle?
-
The style of the searchFieldLabel.
finalinherited
- searchListEmpty → String
-
final
- startSearchText → String
-
final
- textInputAction → TextInputAction
-
The text input action configuring the soft keyboard to a particular action
button.
finalinherited
-
transitionAnimation
→ Animation<
double> -
Animation triggered when the search pages fades in or out.
no setterinherited
- waitingText → String
-
final
Methods
-
appBarTheme(
BuildContext context) → ThemeData -
override
-
buildActions(
BuildContext context) → List< Widget> -
override
-
buildBottom(
BuildContext context) → PreferredSizeWidget? -
Widget to display across the bottom of the AppBar.
inherited
-
buildFlexibleSpace(
BuildContext context) → Widget? -
Widget to display a flexible space in the AppBar.
inherited
-
buildLeading(
BuildContext context) → Widget -
override
-
buildResults(
BuildContext context) → Widget -
override
-
buildSuggestions(
BuildContext context) → Widget -
override
-
close(
BuildContext context, W? result) → void -
Closes the search page and returns to the underlying route.
inherited
-
dispose(
) → void -
Releases the resources.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
showResults(
BuildContext context) → void -
Transition from the suggestions returned by buildSuggestions to the
query results returned by buildResults.
inherited
-
showSuggestions(
BuildContext context) → void -
Transition from showing the results returned by buildResults to showing
the suggestions returned by buildSuggestions.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited