shouldUseNativeDigitsByDefaultFor method Null safety

bool shouldUseNativeDigitsByDefaultFor(
  1. 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 bool shouldUseNativeDigitsByDefaultFor(String locale) {
  return _useNativeDigitsByDefault[locale] ?? true;
}