copyWith method

Address copyWith({
  1. String? street,
  2. String? code,
  3. String? city,
  4. Country? country,
  5. double? latitude,
  6. double? longitude,
})

Implementation

Address copyWith({
  String? street,
  String? code,
  String? city,
  Country? country,
  double? latitude,
  double? longitude,
}) {
  return Address(
    street ?? this.street,
    city ?? this.city,
    country ?? this.country,
    code: code ?? this.code,
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
  );
}