isMemberInChatRoomWhiteList method Null safety

Future<bool> isMemberInChatRoomWhiteList(
  1. String roomId
)

Checks whether the member is on the allow list.

Param roomId The chat room ID.

Return Whether the member is on the allow list.

  • true: Yes;
  • false: No. Throws A description of the exception. See {@link EMError}.

Implementation

Future<bool> isMemberInChatRoomWhiteList(String roomId) async {
  Map req = {"roomId": roomId};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.isMemberInChatRoomWhiteListFromServer, req);
  EMError.hasErrorFromResult(result);
  return result
      .boolValue(ChatMethodKeys.isMemberInChatRoomWhiteListFromServer);
}