copyWith method

  1. @override
MessagePhoto copyWith({
  1. Photo? photo,
  2. FormattedText? caption,
  3. bool? isSecret,
})
override

Implementation

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