gender method

String gender (String targetGender, { String female, String male, String other, String desc, Map<String, dynamic> examples, String locale, String name, List args, String meaning, bool skip })

Format a message differently depending on targetGender.

Implementation

static String gender(String targetGender,
    {String female,
    String male,
    String other,
    String desc,
    Map<String, dynamic> examples,
    String locale,
    String name,
    List args,
    String meaning,
    bool skip}) {
  // Call our internal method, dropping args and desc because they're not used
  // at runtime and we want them to be optimized away.
  return _gender(targetGender,
      male: male,
      female: female,
      other: other,
      locale: locale,
      name: name,
      args: args,
      meaning: meaning);
}