localeOf static method

Locale? localeOf(
  1. BuildContext context
)

Returns the Locale of the nearest AutoTranslationScope ancestor of the given BuildContext.

Implementation

static Locale? localeOf(BuildContext context) {
  return controllerOf(context)?.locale;
}