isGermanLocale function
- dynamic context
Checks if the current locale is German, whatever its country (de, de_AT, de_CH).
Implementation
bool isGermanLocale(BuildContext context) {
return Localizations.localeOf(context).languageCode == 'de';
}
Checks if the current locale is German, whatever its country (de, de_AT, de_CH).
bool isGermanLocale(BuildContext context) {
return Localizations.localeOf(context).languageCode == 'de';
}