ChatUIKitProfile.contact constructor

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

Create a contact profile object. id is the user id. nickname is the user name. avatarUrl is the user avatar address. remark is the user remark information. extension is the extension field. timestamp is the timestamp.

Implementation

ChatUIKitProfile.contact({
  required String id,
  String? nickname,
  String? avatarUrl,
  String? remark,
  Map<String, String>? extension,
  int timestamp = 0,
}) : this(
        id: id,
        showName: nickname,
        avatarUrl: avatarUrl,
        type: ChatUIKitProfileType.contact,
        extension: extension,
        remark: remark,
        timestamp: timestamp,
      );