copyWith method

Place copyWith({
  1. String? id,
  2. double? lat,
  3. double? lng,
  4. String? note,
  5. String? timestamp,
  6. String? address,
  7. bool? isLocal,
  8. bool? isEncrypted,
})

Creates a copy of this Place with optional field overrides.

Implementation

Place copyWith({
  String? id,
  double? lat,
  double? lng,
  String? note,
  String? timestamp,
  String? address,
  bool? isLocal,
  bool? isEncrypted,
}) {
  return Place(
    id: id ?? this.id,
    lat: lat ?? this.lat,
    lng: lng ?? this.lng,
    note: note ?? this.note,
    timestamp: timestamp ?? this.timestamp,
    address: address ?? this.address,
    isLocal: isLocal ?? this.isLocal,
    isEncrypted: isEncrypted ?? this.isEncrypted,
  );
}