copyWith method

InputPageBlockPhoto copyWith({
  1. InputPhoto? photo,
  2. PageBlockCaption? caption,
  3. bool? hasSpoiler,
})

Implementation

InputPageBlockPhoto copyWith({
  InputPhoto? photo,
  PageBlockCaption? caption,
  bool? hasSpoiler,
}) => InputPageBlockPhoto(
  photo: photo ?? this.photo,
  caption: caption ?? this.caption,
  hasSpoiler: hasSpoiler ?? this.hasSpoiler,
);