copyWith method

RecommendResourceRecommendCreator copyWith({
  1. int? accountStatus,
  2. int? vipType,
  3. int? province,
  4. String? avatarUrl,
  5. int? authStatus,
  6. int? userType,
  7. String? nickname,
  8. int? gender,
  9. int? birthday,
  10. int? city,
  11. String? backgroundUrl,
  12. int? avatarImgId,
  13. int? backgroundImgId,
  14. String? detailDescription,
  15. bool? defaultAvatar,
  16. List<String>? expertTags,
  17. int? djStatus,
  18. bool? followed,
  19. bool? mutual,
  20. String? remarkName,
  21. String? avatarImgIdStr,
  22. String? backgroundImgIdStr,
  23. String? description,
  24. int? userId,
  25. String? signature,
  26. int? authority,
})

Implementation

RecommendResourceRecommendCreator copyWith({
  int? accountStatus,
  int? vipType,
  int? province,
  String? avatarUrl,
  int? authStatus,
  int? userType,
  String? nickname,
  int? gender,
  int? birthday,
  int? city,
  String? backgroundUrl,
  int? avatarImgId,
  int? backgroundImgId,
  String? detailDescription,
  bool? defaultAvatar,
  List<String>? expertTags,
  int? djStatus,
  bool? followed,
  bool? mutual,
  String? remarkName,
  String? avatarImgIdStr,
  String? backgroundImgIdStr,
  String? description,
  int? userId,
  String? signature,
  int? authority,
}) {
  return RecommendResourceRecommendCreator()
    ..accountStatus = accountStatus ?? this.accountStatus
    ..vipType = vipType ?? this.vipType
    ..province = province ?? this.province
    ..avatarUrl = avatarUrl ?? this.avatarUrl
    ..authStatus = authStatus ?? this.authStatus
    ..userType = userType ?? this.userType
    ..nickname = nickname ?? this.nickname
    ..gender = gender ?? this.gender
    ..birthday = birthday ?? this.birthday
    ..city = city ?? this.city
    ..backgroundUrl = backgroundUrl ?? this.backgroundUrl
    ..avatarImgId = avatarImgId ?? this.avatarImgId
    ..backgroundImgId = backgroundImgId ?? this.backgroundImgId
    ..detailDescription = detailDescription ?? this.detailDescription
    ..defaultAvatar = defaultAvatar ?? this.defaultAvatar
    ..expertTags = expertTags ?? this.expertTags
    ..djStatus = djStatus ?? this.djStatus
    ..followed = followed ?? this.followed
    ..mutual = mutual ?? this.mutual
    ..remarkName = remarkName ?? this.remarkName
    ..avatarImgIdStr = avatarImgIdStr ?? this.avatarImgIdStr
    ..backgroundImgIdStr = backgroundImgIdStr ?? this.backgroundImgIdStr
    ..description = description ?? this.description
    ..userId = userId ?? this.userId
    ..signature = signature ?? this.signature
    ..authority = authority ?? this.authority;
}