Address constructor

Address({
  1. required Coordinates coordinates,
  2. String? addressLine,
  3. String? countryName,
  4. String? countryCode,
  5. String? featureName,
  6. String? postalCode,
  7. String? adminArea,
  8. String? subAdminArea,
  9. String? locality,
  10. String? subLocality,
  11. String? thoroughfare,
  12. String? subThoroughfare,
})

extracted address details from api

Implementation

Address(
    {required this.coordinates,
    this.addressLine,
    this.countryName,
    this.countryCode,
    this.featureName,
    this.postalCode,
    this.adminArea,
    this.subAdminArea,
    this.locality,
    this.subLocality,
    this.thoroughfare,
    this.subThoroughfare});