count method

String count(
  1. num value,
  2. Symbol key, {
  3. Map<String, dynamic>? map,
  4. Map<String, MustacheFilter>? filters,
  5. bool? strict,
})

Return the string corresponding to key, using map and filters to replace the mustache-like variables. value is a number that helps to choose the right translation variant according to the current language rules. If strict is false the language rules are bent to always return the values for zero, one and two.

Implementation

String count(
  num value,
  Symbol key, {
  Map<String, dynamic>? map,
  Map<String, MustacheFilter>? filters,
  bool? strict,
}) {
  return _data.translateWithMap(
    key,
    map: map,
    filters: filters,
    count: value,
    locale: locale.toLanguageTag(),
    strict: strict,
  );
}