count method
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,
);
}