copyWith method

DeviceAddress copyWith({
  1. String? streetAddress,
  2. String? city,
  3. String? state,
  4. String? postalCode,
  5. LatLng? coordinates,
  6. String? country,
})

Implementation

DeviceAddress copyWith({
  String? streetAddress,
  String? city,
  String? state,
  String? postalCode,
  LatLng? coordinates,
  String? country,
}) {
  return DeviceAddress(
    streetAddress: streetAddress ?? this.streetAddress,
    city: city ?? this.city,
    state: state ?? this.state,
    postalCode: postalCode ?? this.postalCode,
    coordinates: coordinates ?? this.coordinates,
    country: country ?? this.country,
  );
}