SearchProductHelper class

Search helper dedicated to product search.

Inheritance
Available extensions

Constructors

SearchProductHelper()

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
historyKey → String
Key for DaoStringList, used to store the latest X queries.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showPasteFromClipboard → bool
no setterinherited
value ↔ SearchQuery?
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
addQuery(LocalDatabase localDatabase, String query) → Future<void>
Adds a query to the history.
inherited
dispose() → void
Discards any resources used by the object.
inherited
getAllQueries(LocalDatabase localDatabase) → List<String>
Returns all the previous queries, in reverse order.
inherited
getHelpText(AppLocalizations appLocalizations) → String
A small message that will be displayed below the search bar
override
getHintText(AppLocalizations appLocalizations) → String
Hint text for the search field.
override
getLeadingWidget(BuildContext _) → Widget?
An optional leading widget for the search bar.
override
getPreloadedItemsTitle(AppLocalizations appLocalizations) → String?
inherited
getPreloadedItemsTitleIcon() → Widget?
inherited
getQueriesTitleIcon() → Widget?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
removeQuery(LocalDatabase localDatabase, String query) → Future<bool>
Removes a query from the history.
inherited
replaceListener(VoidCallback listener) → void

Available on ChangeNotifier, provided by the ChangeNotifierExtensions extension

Action to perform for a search.
override
searchWithController(BuildContext context, String query, TextEditingController controller, FocusNode focusNode) → void
Typical search when we have a controller+focus.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited