copyWith method

FeedEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. String? description,
  4. int? thumbImage,
  5. bool? photoPost,
  6. bool? videoPost,
  7. bool? messagePost,
  8. bool? audioPost,
  9. bool? albumPost,
  10. bool? articlePost,
})

Implementation

FeedEntity copyWith({
  String? documentID,
  String? appId,
  String? description,
  int? thumbImage,
  bool? photoPost,
  bool? videoPost,
  bool? messagePost,
  bool? audioPost,
  bool? albumPost,
  bool? articlePost,
}) {
  return FeedEntity(
    appId: appId ?? this.appId,
    description: description ?? this.description,
    thumbImage: thumbImage ?? this.thumbImage,
    photoPost: photoPost ?? this.photoPost,
    videoPost: videoPost ?? this.videoPost,
    messagePost: messagePost ?? this.messagePost,
    audioPost: audioPost ?? this.audioPost,
    albumPost: albumPost ?? this.albumPost,
    articlePost: articlePost ?? this.articlePost,
  );
}