NIMSession constructor Null safety

NIMSession(
  1. {required String sessionId,
  2. String? senderAccount,
  3. String? senderNickname,
  4. required NIMSessionType sessionType,
  5. String? lastMessageId,
  6. NIMMessageType? lastMessageType,
  7. NIMMessageStatus? lastMessageStatus,
  8. String? lastMessageContent,
  9. int? lastMessageTime,
  10. NIMMessageAttachment? lastMessageAttachment,
  11. int? unreadCount = 0,
  12. Map<String, dynamic>? extension,
  13. int? tag}
)

Implementation

NIMSession({
  required this.sessionId,
  this.senderAccount,
  this.senderNickname,
  required this.sessionType,
  this.lastMessageId,
  this.lastMessageType,
  this.lastMessageStatus,
  this.lastMessageContent,
  this.lastMessageTime,
  this.lastMessageAttachment,
  this.unreadCount = 0,
  this.extension,
  this.tag,
});