queryRoomMemberList method

Future<Map> queryRoomMemberList(
  1. String roomID,
  2. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> queryRoomMemberList(
    String roomID, dynamic config) async {
  Object _config = mapToJSObj(config);

  final result = await promiseToFuture(
          ZIM.getInstance()!.queryRoomMemberList(roomID, _config))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });
  Map resultMap = jsObjectToMap(result);

  resultMap['nextFlag'] =
      resultMap['nextFlag'] is String ? resultMap['nextFlag'] : '';

  return resultMap;
}