getLanguageByCode static method

Map<String, dynamic> getLanguageByCode(
  1. String code
)

Implementation

static Map<String, dynamic> getLanguageByCode(String code) {
  return languages.firstWhere((element) => element['code'] == code);
}