getRawText method

String? getRawText(
  1. String? locale,
  2. String textId
)

The text for exactly textId in locale, without fallbacks.

For a locale other than the current one, the default locale's text is included when fallbackDefaultLocale is on (as in JavaRosa). Throws UnregisteredLocaleException if locale is null or undefined.

Implementation

String? getRawText(String? locale, String textId) {
  if (locale == null) {
    throw UnregisteredLocaleException(
      'Null locale when attempting to fetch text id: $textId',
    );
  }
  return locale == _currentLocale
      ? _currentLocaleData[textId]
      : getLocaleMap(locale)[textId];
}