ChatModel constructor

ChatModel({
  1. required int chat,
  2. required String message,
  3. required dynamic time,
  4. dynamic chatType = ChatType.message,
})

Creates a new instance of the ChatModel class.

The chat parameter represents the chat ID. The message parameter represents the chat message. The time parameter represents the time of the chat message. The chatType parameter represents the type of the chat message.

Implementation

ChatModel({
  required this.chat,
  required this.message,
  required this.time,
  this.chatType = ChatType.message,
});