pollChatroomQueueEntry method Null safety

Future<NIMResult<NIMChatroomQueueEntry>> pollChatroomQueueEntry(
  1. String roomId,
  2. String? key
)

Remove an element from the queue.

roomId The chatroom ID

key The key of the element to be removed; if null is passed in, the first element of the queue will be removed.

Implementation

Future<NIMResult<NIMChatroomQueueEntry>> pollChatroomQueueEntry(
    String roomId, String? key) {
  return _platform.pollChatroomQueueEntry(roomId, key);
}