getPostCodes method

List<PostCode?>? getPostCodes()

Returns list of PostCode object

this method return every post code data in the country and return the result as list of PostCode

Implementation

List<PostCode?>? getPostCodes() {
  return algeria_postcodes.map((e) => PostCode(data: e)).toSet().toList();
}