isEnglishLocale function

bool isEnglishLocale(
  1. dynamic context
)

Checks if the current locale is English.

Implementation

bool isEnglishLocale(BuildContext context) {
  return Localizations.localeOf(context) == const Locale('en');
}