SearchLocalizations class

Provides localized strings for the search package.

This class uses the intl package to provide internationalization support. Currently supports English, with examples of how to add more languages.

Constructors

SearchLocalizations.new(Locale locale)
Creates search localizations for the given locale.

Properties

back String
Tooltip for the back button.
no setter
clearHistory String
Label for clearing search history.
no setter
clearSearch String
Tooltip for the clear search button.
no setter
fillSearchField String
Tooltip for fill search field button.
no setter
hashCode int
The hash code for this object.
no setterinherited
locale Locale
The current locale.
final
noResults String
Message shown when no results are found.
no setter
recentSearches String
Label for search history section.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchHint String
Hint text for the search field.
no setter
startTyping String
Prompt to start typing.
no setter
tryDifferentKeywords String
Suggestion to try different keywords.
no setter

Methods

errorMessage(String error) String
Error message format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resultsCount(int count) String
Results count format.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

of(BuildContext context) SearchLocalizations
Retrieves the localization instance from the widget tree.