isEnglishLocale function
- dynamic context
Checks if the current locale is English.
Implementation
bool isEnglishLocale(BuildContext context) {
return Localizations.localeOf(context) == const Locale('en');
}
Checks if the current locale is English.
bool isEnglishLocale(BuildContext context) {
return Localizations.localeOf(context) == const Locale('en');
}