getCurrentLocale static method

Locale getCurrentLocale(
  1. BuildContext context
)

Get the current locale from context

Implementation

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