copyWith method

PushMessageContentPhoto copyWith({
  1. Photo? photo,
  2. String? caption,
  3. bool? isSecret,
  4. bool? isPinned,
})

Implementation

PushMessageContentPhoto copyWith({
  Photo? photo,
  String? caption,
  bool? isSecret,
  bool? isPinned,
}) => PushMessageContentPhoto(
  photo: photo ?? this.photo,
  caption: caption ?? this.caption,
  isSecret: isSecret ?? this.isSecret,
  isPinned: isPinned ?? this.isPinned,
);