SelectedBeam constructor

SelectedBeam({
  1. required NIMConversationType type,
  2. String? conversationId,
  3. String? sessionId,
  4. String? name,
  5. int? count,
  6. String? avatar,
})

Implementation

SelectedBeam({
  required this.type,
  this.conversationId,
  this.sessionId,
  this.name,
  this.count,
  this.avatar,
}) {
  if (conversationId == null && sessionId != null) {
    conversationId = ChatKitUtils.conversationId(sessionId!, type);
  } else if (sessionId == null && conversationId != null) {
    sessionId = ChatKitUtils.getConversationTargetId(conversationId!);
  }
  if (name == null) {
    name = sessionId;
  }
}