of static method

SearchLocalizations of(
  1. 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'));
}