copyWith method
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,
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,
);
}