getSiDo function

AreaCode getSiDo(
  1. String languageCode,
  2. String code
)

regionSiDo is the AreaCode of the Si/Do area code from the first region code of siDo.

Implementation

AreaCode getSiDo(String languageCode, String code) {
  return getSiDoCodes(languageCode: languageCode).firstWhere(
    (e) => e.code == code,
  );
}