trPluralParams method
Returns a translated string with pluralization support and parameters replaced.
If i
is 1, returns trParams with params
replaced. Otherwise, returns pluralKey
translated string with params
replaced.
Implementation
String trPluralParams(
[String? pluralKey, int? i, Map<String, String> params = const {}]) {
return i == 1 ? trParams(params) : pluralKey!.trParams(params);
}