select method

String select (Object choice, Map<String, String> cases, { String desc, Map<String, dynamic> examples, String locale, String name, List args, String meaning, bool skip })

Format a message differently depending on choice. We look up the value of choice in cases and return the result, or an empty string if it is not found. Normally used as part of an Intl.message message that is to be translated.

Implementation

static String select(Object choice, Map<String, String> cases,
    {String desc,
    Map<String, dynamic> examples,
    String locale,
    String name,
    List args,
    String meaning,
    bool skip}) {
  return _select(choice, cases,
      locale: locale, name: name, args: args, meaning: meaning);
}