list method

List<ZegoInRoomMessage> list({
  1. ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage,
})

Retrieves a list of chat messages that already exist in the room.

@return A List of ZegoInRoomMessage objects representing the chat messages that already exist in the room.

Implementation

List<ZegoInRoomMessage> list({
  ZegoInRoomMessageType type = ZegoInRoomMessageType.broadcastMessage,
}) {
  return ZegoUIKit().getInRoomMessages(type: type);
}