copyWith method

ConversationItemUserProfile copyWith({
  1. String? userID,
  2. String? nick,
  3. String? gender,
  4. int? birthday,
  5. String? location,
  6. String? selfSignature,
  7. String? allowType,
  8. int? language,
  9. String? avatar,
  10. int? messageSettings,
  11. String? adminForbidType,
  12. int? level,
  13. int? role,
  14. int? lastUpdatedTime,
  15. List? profileCustomField,
})

Implementation

ConversationItemUserProfile copyWith({
  String? userID,
  String? nick,
  String? gender,
  int? birthday,
  String? location,
  String? selfSignature,
  String? allowType,
  int? language,
  String? avatar,
  int? messageSettings,
  String? adminForbidType,
  int? level,
  int? role,
  int? lastUpdatedTime,
  List<dynamic>? profileCustomField,
}) {
  return ConversationItemUserProfile()
    ..userID = userID ?? this.userID
    ..nick = nick ?? this.nick
    ..gender = gender ?? this.gender
    ..birthday = birthday ?? this.birthday
    ..location = location ?? this.location
    ..selfSignature = selfSignature ?? this.selfSignature
    ..allowType = allowType ?? this.allowType
    ..language = language ?? this.language
    ..avatar = avatar ?? this.avatar
    ..messageSettings = messageSettings ?? this.messageSettings
    ..adminForbidType = adminForbidType ?? this.adminForbidType
    ..level = level ?? this.level
    ..role = role ?? this.role
    ..lastUpdatedTime = lastUpdatedTime ?? this.lastUpdatedTime
    ..profileCustomField = profileCustomField ?? this.profileCustomField;
}