changeGenderLanguage function
Implementation
String changeGenderLanguage(String gender, String language) {
if (gender == Gender.male.value && language == Languages.indonesian.value) {
return "Pria";
} else if (gender == Gender.male.value &&
language == Languages.english.value) {
return Gender.male.value;
}
if (gender == Gender.female.value && language == Languages.indonesian.value) {
return "Perempuan";
} else if (gender == Gender.female.value &&
language == Languages.english.value) {
return Gender.female.value;
}
return '';
}