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