copyWith method
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,
);
}