setLocale method
Sets the main locale for this instance.
Implementation
FutureOr<bool> setLocale(dynamic locale) {
var intlLocale = IntlLocale(locale);
if (_currentLocale == intlLocale) return false;
_currentLocale = intlLocale;
return _defineLocalesOrder(true);
}