getTranslation method Null safety

String getTranslation(
  1. int value
)

Implementation

static String getTranslation(int value) {
  switch (value) {
    case GF_PORTRAIT:
      return "Portrait";
    case GF_FINGERPR:
      return "Fingerprint";
    case GF_EYE:
      return "Iris";
    case GF_SIGNATURE:
      return "Signature";
    case GF_BAR_CODE:
      return "Barcode";
    case GF_PROOF_OF_CITIZENSHIP:
      return "Proof of citizenship";
    case GF_DOCUMENT_IMAGE:
      return "Document image";
    case GF_COLOR_DYNAMIC:
      return "Color dynamics";
    case GF_GHOST_PORTRAIT:
      return "Ghost portrait";
    case GF_STAMP:
      return "Stamp";
    case GF_PORTRAIT_OF_CHILD:
      return "Portrait of child";
    case GF_OTHER:
      return "Other";
    case GF_FINGER_LEFT_THUMB:
      return "Left thumb";
    case GF_FINGER_LEFT_INDEX:
      return "Left index finger";
    case GF_FINGER_LEFT_MIDDLE:
      return "Left middle finger";
    case GF_FINGER_LEFT_RING:
      return "Left ring finger";
    case GF_FINGER_LEFT_LITTLE:
      return "Left little finger";
    case GF_FINGER_RIGHT_THUMB:
      return "Right thumb";
    case GF_FINGER_RIGHT_INDEX:
      return "Right index finger";
    case GF_FINGER_RIGHT_MIDDLE:
      return "Right middle finger";
    case GF_FINGER_RIGHT_RING:
      return "Right ring finger";
    case GF_FINGER_RIGHT_LITTLE:
      return "Right little finger";
    default:
      return value.toString();
  }
}