trPlural method

String trPlural([
  1. String? pluralKey,
  2. int? i,
  3. List<String> args = const <String>[]
])

Returns a translated string with pluralization support and arguments replaced.

If i is 1, returns trArgs with args replaced. Otherwise, returns pluralKey translated string with args replaced.

Implementation

String trPlural([
  String? pluralKey,
  int? i,
  List<String> args = const <String>[],
]) =>
    i == 1 ? trArgs(args) : pluralKey!.trArgs(args);