ChatInfo constructor

ChatInfo({
  1. MessageType type = MessageType.info,
  2. ChatUser author = const ChatUser(userID: ''),
  3. String? messageID,
  4. required int createdAt,
  5. required String info,
})

Create the class

Implementation

ChatInfo(
    {super.type = MessageType.info,
    super.author = const ChatUser(userID: ''),
    super.messageID,
    required super.createdAt,
    required this.info});