ChatUIKitProfile constructor

ChatUIKitProfile({
  1. required String id,
  2. required ChatUIKitProfileType type,
  3. String? showName,
  4. String? avatarUrl,
  5. Map<String, String>? extension,
  6. String? remark,
  7. int timestamp = 0,
})

Constructor, used to create a profile object. id is the user id. showName is the show name. when type is contact, it is the user nickname, when type is group, it is the group name. avatarUrl is the user avatar address. type is the profile type. extension is the extension field. remark is the user remark information. timestamp is the timestamp.

Implementation

ChatUIKitProfile({
  required this.id,
  required this.type,
  this.showName,
  this.avatarUrl,
  this.extension,
  this.remark,
  this.timestamp = 0,
});