copyWith method

Location copyWith({
  1. num? accuracy,
  2. String? adCode,
  3. String? address,
  4. num? altitude,
  5. String? aoiName,
  6. num? bearing,
  7. String? buildingId,
  8. String? city,
  9. String? cityCode,
  10. String? coordType,
  11. String? country,
  12. String? district,
  13. num? errorCode,
  14. String? errorInfo,
  15. int? floor,
  16. num? gpsAccuracyStatus,
  17. bool? isFixLastLocation,
  18. bool? isMock,
  19. bool? isOffset,
  20. num? latitude,
  21. String? locationDetail,
  22. LocationQualityReport? locationQualityReport,
  23. num? locationType,
  24. num? longitude,
  25. String? poiName,
  26. String? provider,
  27. String? province,
  28. num? satellites,
  29. num? speed,
  30. String? street,
  31. String? streetNum,
  32. num? trustedLevel,
})

Implementation

Location copyWith({
  num? accuracy,
  String? adCode,
  String? address,
  num? altitude,
  String? aoiName,
  num? bearing,
  String? buildingId,
  String? city,
  String? cityCode,
  String? coordType,
  String? country,
  String? district,
  num? errorCode,
  String? errorInfo,
  int? floor,
  num? gpsAccuracyStatus,
  bool? isFixLastLocation,
  bool? isMock,
  bool? isOffset,
  num? latitude,
  String? locationDetail,
  LocationQualityReport? locationQualityReport,
  num? locationType,
  num? longitude,
  String? poiName,
  String? provider,
  String? province,
  num? satellites,
  num? speed,
  String? street,
  String? streetNum,
  num? trustedLevel,
}) {
  return Location(
    accuracy: accuracy ?? this.accuracy,
    adCode: adCode ?? this.adCode,
    address: address ?? this.address,
    altitude: altitude ?? this.altitude,
    aoiName: aoiName ?? this.aoiName,
    bearing: bearing ?? this.bearing,
    buildingId: buildingId ?? this.buildingId,
    city: city ?? this.city,
    cityCode: cityCode ?? this.cityCode,
    coordType: coordType ?? this.coordType,
    country: country ?? this.country,
    district: district ?? this.district,
    errorCode: errorCode ?? this.errorCode,
    errorInfo: errorInfo ?? this.errorInfo,
    floor: floor ?? this.floor,
    gpsAccuracyStatus: gpsAccuracyStatus ?? this.gpsAccuracyStatus,
    isFixLastLocation: isFixLastLocation ?? this.isFixLastLocation,
    isMock: isMock ?? this.isMock,
    isOffset: isOffset ?? this.isOffset,
    latitude: latitude ?? this.latitude,
    locationDetail: locationDetail ?? this.locationDetail,
    locationQualityReport: locationQualityReport ?? this.locationQualityReport,
    locationType: locationType ?? this.locationType,
    longitude: longitude ?? this.longitude,
    poiName: poiName ?? this.poiName,
    provider: provider ?? this.provider,
    province: province ?? this.province,
    satellites: satellites ?? this.satellites,
    speed: speed ?? this.speed,
    street: street ?? this.street,
    streetNum: streetNum ?? this.streetNum,
    trustedLevel: trustedLevel ?? this.trustedLevel,
  );
}