copyWith method

LocationRequest copyWith({
  1. String? name,
  2. double? lat,
  3. double? lng,
})

Implementation

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