of static method

Gets the AppLocalizations instance from the context.

Implementation

static AppLocalizations? of(BuildContext context) {
  return Localizations.of<AppLocalizations>(context, AppLocalizations);
}