getPostCodes method
Returns list of PostCode
object
this method return every post code data in the commune
and return the result as list of PostCode
Implementation
List<PostCode>? getPostCodes() {
return algeria_postcodes.where((element) => ((element['commune_name'] == data!['commune_name']))).map((e) => PostCode(data: e)).toSet().toList();
}