ChatUIKitProfile.custom constructor

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

Create a custom profile object. id is the id. showName is the show name. avatarUrl is the avatar address. remark is the remark information. extension is the extension field. timestamp is the timestamp.

Implementation

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