RootMessage constructor

RootMessage({
  1. required String channelUrl,
  2. required ChannelType channelType,
  3. String? data,
  4. String? customType,
  5. MentionType mentionType = MentionType.users,
  6. List<User> mentionedUsers = const <User>[],
  7. List<String>? mentionedUserIds,
  8. List<MessageMetaArray>? allMetaArrays,
  9. Map<String, dynamic>? extendedMessage,
  10. int createdAt = 0,
  11. int updatedAt = 0,
})

Implementation

RootMessage({
  required this.channelUrl,
  required this.channelType,
  this.data,
  this.customType,
  this.mentionType = MentionType.users,
  List<User> mentionedUsers = const <User>[],
  List<String>? mentionedUserIds,
  this.allMetaArrays,
  Map<String, dynamic>? extendedMessage,
  this.createdAt = 0,
  this.updatedAt = 0,
})  : _mentionedUsers = mentionedUsers,
      mentionedUserIds = mentionedUserIds ?? [],
      extendedMessage = extendedMessage ?? {};