copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
ChatEventPhotoChanged copyWith({
ChatPhoto? Function()? oldPhoto,
ChatPhoto? Function()? newPhoto,
}) =>
ChatEventPhotoChanged(
oldPhoto: oldPhoto != null ? oldPhoto() : this.oldPhoto,
newPhoto: newPhoto != null ? newPhoto() : this.newPhoto,
);