gender method

String gender(
  1. JsonIntlGender gender,
  2. Symbol key, {
  3. Map<String, dynamic>? map,
  4. Map<String, MustacheFilter>? filters,
})

Return the string corresponding to key, using map and filters to replace the mustache-like variables. gender helps to choose the right translation variant for the specified gender.

Implementation

String gender(
  JsonIntlGender gender,
  Symbol key, {
  Map<String, dynamic>? map,
  Map<String, MustacheFilter>? filters,
}) {
  return _data.translateWithMap(
    key,
    map: map,
    filters: filters,
    gender: gender,
    locale: locale.toLanguageTag(),
  );
}