getTextWithNamedArgs method

String getTextWithNamedArgs(
  1. String textId,
  2. Map<String, String> args
)

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);
}