setLocaleGlobally static method

dynamic setLocaleGlobally(
  1. ILocaleData locale, {
  2. dynamic useInFormat = false,
})

Sets the global locale

If useInFormat is set to true, the chosen locale needs to be initialized with initializeDateFormatting(locale.localeString)

Implementation

static setLocaleGlobally(ILocaleData locale, {useInFormat = false}) {
  _globalLocale = locale;
  _useGlobalLocaleInFormat = useInFormat;
}