shouldUseNativeDigitsByDefaultFor method

dynamic shouldUseNativeDigitsByDefaultFor (String locale)

Should a new DateFormat for locale have useNativeDigits true.

For example, for locale 'ar' when this setting is true, DateFormat will format using Eastern Arabic digits, e.g. "\u0660, \u0661, \u0662". If it is false, a new DateFormat will format using ASCII digits.

Implementation

static shouldUseNativeDigitsByDefaultFor(String locale) {
  return _useNativeDigitsByDefault[locale] ?? true;
}