get static method

String get(
  1. int count, {
  2. required String zero,
  3. required String one,
  4. required String few,
  5. required String many,
  6. required String other,
  7. String? locale,
})

Get pluralized form based on count

Implementation

static String get(
  int count, {
  required String zero,
  required String one,
  required String few,
  required String many,
  required String other,
  String? locale,
}) {
  // Default English-like pluralization
  if (count == 0) return zero;
  if (count == 1) return one;
  return other;
}