getTranslation method Null safety

String getTranslation(
  1. int value
)

Implementation

static String getTranslation(int value) {
  switch (value) {
    case DFT_MIFARE_DATA:
      return "MIFARE data";
    case DFT_DL_COM:
      return "EF.COM";
    case DFT_PASSPORT_DG1:
      return "Machine Readable Zone (DG1)";
    case DFT_ID_DG1:
      return "Document type" + " (DG1)";
    case DFT_DL_DG1:
      return "Text data elements (DG1)";
    case DFT_PASSPORT_DG2:
      return "Biometry - Facial data (DG2)";
    case DFT_ID_DG2:
      return "Issuing state" + " (DG2)";
    case DFT_DL_DG2:
      return "License holder information (DG2)";
    case DFT_PASSPORT_DG3:
      return "Biometry - Fingerprint(s) (DG3)";
    case DFT_ID_DG3:
      return "Date of expiry" + " (DG3)";
    case DFT_DL_DG3:
      return "Issuing authority details (DG3)";
    case DFT_PASSPORT_DG4:
      return "Biometry - Iris Data (DG4)";
    case DFT_ID_DG4:
      return "Given name" + " (DG4)";
    case DFT_DL_DG4:
      return "Portrait image (DG4)";
    case DFT_PASSPORT_DG5:
      return "Portrait(s) (DG5)";
    case DFT_ID_DG5:
      return "Surname/given name at birth" + " (DG5)";
    case DFT_DL_DG5:
      return "Signature / usual mark image (DG5)";
    case DFT_PASSPORT_DG6:
      return "not defined (DG6)";
    case DFT_ID_DG6:
      return "Pseudonym" + " (DG6)";
    case DFT_DL_DG6:
      return "Biometry - Facial data (DG6)";
    case DFT_PASSPORT_DG7:
      return "Signature / usual mark image (DG7)";
    case DFT_ID_DG7:
      return "Academic title" + " (DG7)";
    case DFT_DL_DG7:
      return "Biometry - Fingerprint(s) (DG7)";
    case DFT_PASSPORT_DG8:
      return "not defined (DG8)";
    case DFT_ID_DG8:
      return "Date of birth" + " (DG8)";
    case DFT_DL_DG8:
      return "Biometry - Iris Data (DG8)";
    case DFT_PASSPORT_DG9:
      return "not defined (DG9)";
    case DFT_ID_DG9:
      return "Place of birth" + " (DG9)";
    case DFT_DL_DG9:
      return "Biometry - Other (DG9)";
    case DFT_PASSPORT_DG10:
      return "not defined (DG10)";
    case DFT_ID_DG10:
      return "Nationality" + " (DG10)";
    case DFT_DL_DG10:
      return "not defined (DG10)";
    case DFT_PASSPORT_DG11:
      return "Additional personal detail(s) (DG11)";
    case DFT_ID_DG11:
      return "Sex" + " (DG11)";
    case DFT_DL_DG11:
      return "Optional domestic data (DG11)";
    case DFT_PASSPORT_DG12:
      return "Additional document details (DG12)";
    case DFT_ID_DG12:
      return "Optional details" + " (DG12)";
    case DFT_DL_DG12:
      return "Non-match alert (DG12)";
    case DFT_PASSPORT_DG13:
      return "Optional detail(s) (DG13)";
    case DFT_ID_DG13:
      return "Undefined" + " (DG13)";
    case DFT_DL_DG13:
      return "Active Authentication info (DG13)";
    case DFT_PASSPORT_DG14:
      return "EAC info (DG14)";
    case DFT_ID_DG14:
      return "Undefined" + " (DG14)";
    case DFT_DL_DG14:
      return "EAC info (DG14)";
    case DFT_PASSPORT_DG15:
      return "Active Authentication info (DG15)";
    case DFT_ID_DG15:
      return "Undefined" + " (DG15)";
    case DFT_PASSPORT_DG16:
      return "Person(s) to notify (DG16)";
    case DFT_ID_DG16:
      return "Undefined" + " (DG16)";
    case DFT_PASSPORT_DG17:
      return "DG17";
    case DFT_ID_DG17:
      return "Place of registration" + " (DG17)";
    case DFT_PASSPORT_DG18:
      return "DG18";
    case DFT_ID_DG18:
      return "Place of registration" + " (DG18)";
    case DFT_PASSPORT_DG19:
      return "DG19";
    case DFT_ID_DG19:
      return "Residence permit 1" + " (DG19)";
    case DFT_PASSPORT_DG20:
      return "DG20";
    case DFT_ID_DG20:
      return "Residence permit 2" + " (DG20)";
    case DFT_ID_DG21:
      return "Optional details" + " (DG21)";
    case DFT_DL_SOD:
      return "EF.SOD";
    case DFT_PASSPORT_CVCA:
      return "EF.CVCA";
    case DFT_MIFARE_VALIDITY:
      return "MIFARE validity";
    case DFT_PACE_CARDACCESS:
      return "EF.CardAccess";
    case DFT_PACE_CARDSECURITY:
      return "EF.CardSecurity";
    case DFT_PACE_CHIPSECURITY:
      return "EF.ChipSecurity";
    case DFT_CERTIFICATE:
      return "Certificate";
    case DFT_APP_DIRECTORY:
      return "App directory";
    case DFT_ATR:
      return "DFT_ATR";
    case DFT_CHIP_PROPERTIES:
      return "DFT_CHIP_PROPERTIES";
    case DFT_DEFECTLIST:
      return "DFT_DEFECTLIST";
    case DFT_DEVIATIONLIST:
      return "DFT_DEVIATIONLIST";
    case DFT_DL_CE:
      return "DFT_DL_CE";
    case DFT_DL_CVCA:
      return "DFT_DL_CVCA";
    case DFT_ESIGN_PK:
      return "DFT_ESIGN_PK";
    case DFT_ESIGN_SIGNEDDATA:
      return "DFT_ESIGN_SIGNEDDATA";
    case DFT_LOGDATA:
      return "DFT_LOGDATA";
    case DFT_MASTERLIST:
      return "DFT_MASTERLIST";
    case DFT_SESSION:
      return "DFT_SESSION";
    case DFT_UNSPECIFIED:
      return "DFT_UNSPECIFIED";
    case DFT_USERDEFINED:
      return "DFT_USERDEFINED";
    default:
      return value.toString();
  }
}