use
didChangeDependencies
method,the method is called after the initState is called and it gives you access to the context.
Your code will look like this
@override
void didChangeDependencies() {
Locale myLocale = Localizations.localeOf(context);
print('my locale ${myLocale}');
super.didChangeDependencies();
}