copyWith method
Implementation
LocationRequest copyWith({String? name, double? lat, double? lng}) {
return LocationRequest(
name: name ?? this.name, lat: lat ?? this.lat, lng: lng ?? this.lng);
}
LocationRequest copyWith({String? name, double? lat, double? lng}) {
return LocationRequest(
name: name ?? this.name, lat: lat ?? this.lat, lng: lng ?? this.lng);
}