convertQuanhe method

String convertQuanhe()

Implementation

String convertQuanhe() {
  String s = "";
  if (quanHe == "") {
    return "";
  }
  switch (quanHe) {
    case "0":
      s = "father".tr;
      break;
    case "1":
      s = "mother".tr;
      break;
    case "2":
      s = "husband".tr;
      break;
    case "3":
      s = "wife".tr;
      break;
    case "4":
      s = "baby".tr;
      break;
    default:
      s = "";
      break;
  }
  return s;
}