getTextWithNamedArgs method
The text for textId in the current locale with ${name} replaced
from args. Throws NoLocalizedTextException if missing.
Implementation
String getTextWithNamedArgs(String textId, Map<String, String> args) {
final text = getText(textId);
if (text == null) throw _noText(textId);
return processNamedArguments(text, args);
}