copyWith method

LocationModel copyWith({
  1. double? latitude,
  2. double? longitude,
  3. String? address,
})

Implementation

LocationModel copyWith({
  double? latitude,
  double? longitude,
  String? address,
}) {
  return LocationModel(
    latitude: latitude ?? this.latitude,
    longitude: longitude ?? this.longitude,
    address: address ?? this.address,
  );
}