isGermanLocale function

bool isGermanLocale(
  1. 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';
}