trPluralParams method

String trPluralParams([
  1. String? pluralKey,
  2. int? i,
  3. Map<String, String> params = const {}
])

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