of static method
- BuildContext context
Retrieves the localization instance from the widget tree.
Implementation
static SearchLocalizations of(BuildContext context) {
return Localizations.of<SearchLocalizations>(
context,
SearchLocalizations,
) ??
SearchLocalizations(const Locale('en'));
}