copyWith method

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

Implementation

@override
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,
    );