useNativeDigits property

bool useNativeDigits

Should we use native digits for printing DateTime, or ASCII.

The default for this can be set using useNativeDigitsByDefaultFor.

Implementation

bool get useNativeDigits => _useNativeDigits == null
    ? _useNativeDigits = shouldUseNativeDigitsByDefaultFor(locale)
    : _useNativeDigits!;
void useNativeDigits=(bool native)

Should we use native digits for printing DateTime, or ASCII.

Implementation

set useNativeDigits(bool native) {
  _useNativeDigits = native;
  // Invalidate any cached information that would depend on this setting.
  _digitMatcher = null;
  _localeZeroCodeUnit = null;
  _localeZero = null;
}