copyWith method

LocationIpResponse copyWith({
  1. String? status,
  2. String? info,
  3. String? infoCode,
  4. String? province,
  5. String? city,
  6. String? adcode,
  7. LatLngBounds? rectangle,
})

Implementation

LocationIpResponse copyWith({
  String? status,
  String? info,
  String? infoCode,
  String? province,
  String? city,
  String? adcode,
  LatLngBounds? rectangle,
}) {
  return LocationIpResponse(
    status: status ?? this.status,
    info: info ?? this.info,
    infoCode: infoCode ?? this.infoCode,
    province: province ?? this.province,
    city: city ?? this.city,
    adcode: adcode ?? this.adcode,
    rectangle: rectangle ?? this.rectangle,
  );
}