copyWith method
Creates a copy of this Report with optional parameter updates
Implementation
Report copyWith({
String? type,
GeoPoint? location,
String? geohash,
Timestamp? expiresAt,
int? direction,
int? lane,
String? suggestedAlternative,
Map<String, dynamic>? details,
}) {
return Report(
id: id,
type: type ?? this.type,
location: location ?? this.location,
geohash: geohash ?? this.geohash,
createdBy: createdBy,
createdAt: createdAt,
expiresAt: expiresAt ?? this.expiresAt,
direction: direction ?? this.direction,
lane: lane ?? this.lane,
suggestedAlternative: suggestedAlternative ?? this.suggestedAlternative,
details: details ?? this.details,
);
}