MessageModel constructor
MessageModel({
- String? modelId,
- required Message message,
- List<
MessageReaction> ? reactions, - Message? quoteMessage,
- ChatThread? thread,
- MessagePinInfo? pinInfo,
Implementation
MessageModel({
String? modelId,
required this.message,
this.reactions,
this.quoteMessage,
this.thread,
this.pinInfo,
}) : id = modelId ?? randomId(message);