Message constructor

Message({
  1. required MessageType type,
  2. required ChatUser author,
  3. required int createdAt,
  4. DeliveryStatus? status,
  5. Map<String, dynamic>? meta,
  6. Message? repliedTo,
})

Create the class

Implementation

Message(
    {required this.type,
    required this.author,
    required this.createdAt,
    this.status,
    this.meta,
    this.repliedTo});