copyWith method

PageBlockPhoto copyWith({
  1. Photo? photo,
  2. PageBlockCaption? caption,
  3. String? url,
  4. bool? hasSpoiler,
})

Implementation

PageBlockPhoto copyWith({
  Photo? photo,
  PageBlockCaption? caption,
  String? url,
  bool? hasSpoiler,
}) => PageBlockPhoto(
  photo: photo ?? this.photo,
  caption: caption ?? this.caption,
  url: url ?? this.url,
  hasSpoiler: hasSpoiler ?? this.hasSpoiler,
);