localeOf static method
Returns the Locale of the nearest AutoTranslationScope ancestor of the given BuildContext.
Implementation
static Locale? localeOf(BuildContext context) {
return controllerOf(context)?.locale;
}
Returns the Locale of the nearest AutoTranslationScope ancestor of the given BuildContext.
static Locale? localeOf(BuildContext context) {
return controllerOf(context)?.locale;
}