copyWith method
Implementation
Contact copyWith({
String? id,
String? creatorId,
String? organizationId,
String? name,
String? phone,
DateTime? createdAt,
DateTime? updatedAt,
}) {
return Contact(
id: id ?? this.id,
creatorId: creatorId ?? this.creatorId,
organizationId: organizationId ?? this.organizationId,
name: name ?? this.name,
phone: phone ?? this.phone,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
);
}