copyWith method

Location copyWith({
  1. double? lat,
  2. double? lng,
})

Implementation

Location copyWith({double? lat, double? lng}) {
  return Location(lat: lat ?? this.lat, lng: lng ?? this.lng);
}