copyWith method
Implementation
Location copyWith({
double? latitude,
double? longitude,
double? accuracy,
double? altitude,
double? heading,
double? speed,
double? speedAccuracy,
DateTime? timestamp,
bool? mocked,
}) =>
Location(
latitude: latitude ?? this.latitude,
longitude: longitude ?? this.longitude,
accuracy: accuracy ?? this.accuracy,
altitude: altitude ?? this.altitude,
heading: heading ?? this.heading,
speed: speed ?? this.speed,
speedAccuracy: speedAccuracy ?? this.speedAccuracy,
timestamp: timestamp ?? this.timestamp,
mocked: mocked ?? this.mocked,
);