getCommuneName method
Returns String? object
this method take language
(FR or AR) as parameter
and return the name of the commune
Implementation
String? getCommuneName(Language lang) {
if (lang == Language.AR) {
return data!['commune_name'];
} else if (lang == Language.FR) {
return data!['commune_name_ascii'];
//for additional languages
} else
return data!['commune_name_ascii'];
}