copyWith method

AlbumInfoAlbumInfo copyWith({
  1. AlbumInfoAlbumInfoCommentThread? commentThread,
  2. dynamic latestLikedUsers,
  3. bool? liked,
  4. dynamic comments,
  5. int? resourceType,
  6. int? resourceId,
  7. int? commentCount,
  8. int? likedCount,
  9. int? shareCount,
  10. String? threadId,
})

Implementation

AlbumInfoAlbumInfo copyWith({
  AlbumInfoAlbumInfoCommentThread? commentThread,
  dynamic latestLikedUsers,
  bool? liked,
  dynamic comments,
  int? resourceType,
  int? resourceId,
  int? commentCount,
  int? likedCount,
  int? shareCount,
  String? threadId,
}) {
  return AlbumInfoAlbumInfo()
    ..commentThread = commentThread ?? this.commentThread
    ..latestLikedUsers = latestLikedUsers ?? this.latestLikedUsers
    ..liked = liked ?? this.liked
    ..comments = comments ?? this.comments
    ..resourceType = resourceType ?? this.resourceType
    ..resourceId = resourceId ?? this.resourceId
    ..commentCount = commentCount ?? this.commentCount
    ..likedCount = likedCount ?? this.likedCount
    ..shareCount = shareCount ?? this.shareCount
    ..threadId = threadId ?? this.threadId;
}