setAsDefaultLocale method

void setAsDefaultLocale()

Sets this string as the default locale for subsequent Intl operations.

This overrides the locale used for new Intl instances where the locale isn't explicitly specified.

Note: Using Intl.withLocale is often preferable for setting locales temporarily within specific blocks of code.

Implementation

void setAsDefaultLocale() => Intl.defaultLocale = this;