translateWithParams method

String translateWithParams(
  1. String key,
  2. Map<String, dynamic> namedArgs
)

Translates a given key with parameters.

key is the translation key. namedArgs is a map of parameters for the translation. Returns the translated string with parameters.

Implementation

String translateWithParams(String key, Map<String, dynamic> namedArgs) {
  return translator.translateWithParams(key, namedArgs, _localizedStrings);
}