getAddressSimple method

String getAddressSimple()

Implementation

String getAddressSimple()  {

  String address = "";

  try {
    String locality = city;
    String administrativeArea = street;
    String country = this.country;

    locality.isNotEmpty ?
    address = "$locality, $country"
        : address = "$administrativeArea, $country" ;
  } catch (e) {
    AppConfig.logger.e(e.toString());
  }

  return address;
}