getTextWithArgs method
The text for textId in the current locale with ${0}, ${1}…
replaced by args. Throws NoLocalizedTextException if missing.
Implementation
String getTextWithArgs(String textId, List<String> args) {
final text = getText(textId);
if (text == null) throw _noText(textId);
return processArguments(text, args);
}