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