locale static method

Locale? locale(
  1. BuildContext context
)

Implementation

static Locale? locale(
  BuildContext context,
) {
  final localeInheritedWidget =
      context.dependOnInheritedWidgetOfExactType<LocaleInheritedWidget>();
  return localeInheritedWidget?.locale;
}