icuPlural function
Selects a plural form for count and replaces every # in the chosen form
with the count.
zero is used only when provided and count == 0; one when count == 1;
otherwise other. Languages with richer plural categories can route through
other or pass the exact forms that matter.
Example:
icuPlural(0, zero: 'No files', one: '# file', other: '# files'); // No files
icuPlural(1, one: '# file', other: '# files'); // 1 file
icuPlural(5, one: '# file', other: '# files'); // 5 files
Audited: 2026-06-12 11:26 EDT
Implementation
String icuPlural(int count, {required String other, String? one, String? zero}) =>
_pluralForm(count, zero: zero, one: one, other: other).replaceAll('#', '$count');