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);
}