copyWith method

RecommendResourceRecommend copyWith({
  1. int? id,
  2. int? type,
  3. String? name,
  4. String? copywriter,
  5. String? picUrl,
  6. int? playcount,
  7. int? createTime,
  8. RecommendResourceRecommendCreator? creator,
  9. int? trackCount,
  10. int? userId,
  11. String? alg,
})

Implementation

RecommendResourceRecommend copyWith({
  int? id,
  int? type,
  String? name,
  String? copywriter,
  String? picUrl,
  int? playcount,
  int? createTime,
  RecommendResourceRecommendCreator? creator,
  int? trackCount,
  int? userId,
  String? alg,
}) {
  return RecommendResourceRecommend()
    ..id = id ?? this.id
    ..type = type ?? this.type
    ..name = name ?? this.name
    ..copywriter = copywriter ?? this.copywriter
    ..picUrl = picUrl ?? this.picUrl
    ..playcount = playcount ?? this.playcount
    ..createTime = createTime ?? this.createTime
    ..creator = creator ?? this.creator
    ..trackCount = trackCount ?? this.trackCount
    ..userId = userId ?? this.userId
    ..alg = alg ?? this.alg;
}