getCurrentLocale static method

Locale getCurrentLocale(
  1. BuildContext context
)

Implementation

static Locale getCurrentLocale(BuildContext context) {
  final locale = Localizations.localeOf(context);
  return locale;
}