modules/app/utils/context_utils library

Classes

AppLocalizations
Callers can lookup localized strings with an instance of AppLocalizations returned by AppLocalizations.of(context).

Extensions

ContextUtils on BuildContext
Adds a AppLocalizations getter to BuildContext.
StateUtils on State<StatefulWidget>
Adds a AppLocalizations getter to State.

Functions

lookupAppLocalizations(Locale locale) AppLocalizations

Typedefs

Translator = String Function(BuildContext context)
A function that returns a translated string based on the BuildContext.