MessageModel constructor

MessageModel({
  1. String? modelId,
  2. required Message message,
  3. List<MessageReaction>? reactions,
  4. Message? quoteMessage,
  5. ChatThread? thread,
  6. MessagePinInfo? pinInfo,
})

Implementation

MessageModel({
  String? modelId,
  required this.message,
  this.reactions,
  this.quoteMessage,
  this.thread,
  this.pinInfo,
}) : id = modelId ?? randomId(message);