copyWith method
Implementation
MessagePhoto copyWith({
Photo? photo,
Video? video,
FormattedText? caption,
bool? showCaptionAboveMedia,
bool? hasSpoiler,
bool? isSecret,
}) => MessagePhoto(
photo: photo ?? this.photo,
video: video ?? this.video,
caption: caption ?? this.caption,
showCaptionAboveMedia: showCaptionAboveMedia ?? this.showCaptionAboveMedia,
hasSpoiler: hasSpoiler ?? this.hasSpoiler,
isSecret: isSecret ?? this.isSecret,
);