copyWith method
MessagePhoto
copyWith({
- Photo? photo,
- FormattedText? caption,
- bool? hasSpoiler,
- bool? isSecret,
override
Implementation
@override
MessagePhoto copyWith({
Photo? photo,
FormattedText? caption,
bool? hasSpoiler,
bool? isSecret,
}) =>
MessagePhoto(
photo: photo ?? this.photo,
caption: caption ?? this.caption,
hasSpoiler: hasSpoiler ?? this.hasSpoiler,
isSecret: isSecret ?? this.isSecret,
);