getWilayaName method
Returns String object
this method take language
(FR or AR) as parameter
and return the name of the wilaya
Implementation
String? getWilayaName(Language lang) {
if (lang == Language.AR) {
return data!['wilaya_name'];
} else if (lang == Language.FR) {
if (data!.containsKey('wilaya_name_ascii')) {
return data!['wilaya_name_ascii'];
}
return "not available";
//for additional languages
} else
return data!['wilaya_name_ascii'];
}