copyWith method

LocationResult copyWith({
  1. double? latitude,
  2. double? longitude,
  3. String? address,
  4. String? city,
  5. String? state,
  6. String? country,
  7. String? postalCode,
  8. AddressSource? addressSource,
})

Implementation

LocationResult copyWith({
  double? latitude,
  double? longitude,
  String? address,
  String? city,
  String? state,
  String? country,
  String? postalCode,
  AddressSource? addressSource,
}) {
  return LocationResult(
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    address: address ?? this.address,
    city: city ?? this.city,
    state: state ?? this.state,
    country: country ?? this.country,
    postalCode: postalCode ?? this.postalCode,
    addressSource: addressSource ?? this.addressSource,
  );
}