MessageEvent constructor Null safety

MessageEvent(
  1. {required int messageId,
  2. required ChannelType channelType,
  3. required String channelUrl,
  4. bool forceUpdateLastMessage = false,
  5. bool silent = false,
  6. Sender? sender,
  7. String? requestId,
  8. MentionType? mentionType,
  9. List<User>? mentionedUsers,
  10. List<Thumbnail>? thumbnails,
  11. Map<String, dynamic>? oldValues}
)

Implementation

MessageEvent({
  required this.messageId,
  required this.channelType,
  required this.channelUrl,
  this.forceUpdateLastMessage = false,
  this.silent = false,
  this.sender,
  this.requestId,
  this.mentionType,
  this.mentionedUsers,
  this.thumbnails,
  this.oldValues,
});