setCurrentLocaleWithContext method
Pass context to set the locale for the current device.
contextを渡して現在のデバイスのロケールを設定します。
Implementation
void setCurrentLocaleWithContext(BuildContext context) {
final locale = Localizations.localeOf(context);
setCurrentLocale(locale);
}