copyWith method

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

Implementation

@override
FeedModel copyWith({
  String? documentID,
  String? appId,
  String? description,
  ThumbStyle? thumbImage,
  bool? photoPost,
  bool? videoPost,
  bool? messagePost,
  bool? audioPost,
  bool? albumPost,
  bool? articlePost,
}) {
  return FeedModel(
    documentID: documentID ?? this.documentID,
    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,
  );
}