getLocalizedText method

String getLocalizedText(
  1. String textId
)

Like getText, but throws NoLocalizedTextException if there is no text.

Implementation

String getLocalizedText(String textId) =>
    getText(textId) ?? (throw _noText(textId));