findCode2Letters static method

String findCode2Letters(
  1. String val
)

Implementation

static String findCode2Letters(String val) => Country.countriesFrench.entries
    .firstWhere((element) => element.value.toLowerCase() == val.toLowerCase())
    .key;