pluralize method
Returns a localized string based on the plural category of this number.
This uses the Intl.plural function to determine the appropriate
plural form for the current locale and number.
Arguments:
other: The string to return for plural forms other than zero, one, two, few, or many.zero,one,two,few,many: Strings for specific plural forms (optional).desc,examples,locale,name,args,meaning,skip: Optional parameters for fine-tuning the pluralization logic (seeIntl.pluraldocumentation).
Implementation
String pluralize({
required String other,
String? zero,
String? one,
String? two,
String? few,
String? many,
String? desc,
Map<String, Object>? examples,
String? locale,
int? precision,
String? name,
List<Object>? args,
String? meaning,
bool? skip,
}) =>
Intl.plural(
this,
other: other,
zero: zero,
one: one,
two: two,
few: few,
many: many,
desc: desc,
examples: examples,
locale: locale,
precision: precision,
name: name,
args: args,
meaning: meaning,
skip: skip,
);