plural method
Format a message differently depending on howMany
. Normally used
as part of an Intl.message
text that is to be translated.
Selects the correct plural form from
the provided alternatives. The other
named argument is mandatory.
Implementation
static String plural(int howMany,
{String zero,
String one,
String two,
String few,
String many,
String other,
String desc,
Map<String, dynamic> examples,
String locale,
String name,
List args,
String meaning,
bool skip}) {
// Call our internal method, dropping examples and desc because they're not
// used at runtime and we want them to be optimized away.
return _plural(howMany,
zero: zero,
one: one,
two: two,
few: few,
many: many,
other: other,
locale: locale,
name: name,
args: args,
meaning: meaning);
}