isExist static method

bool isExist(
  1. String code
)

Implementation

static bool isExist(String code) {
  return langs.any((element) => element['code'] == code);
}