setRoomMembersAttributes method
Future<Map>
setRoomMembersAttributes(
- Map attributes,
- String roomID,
- dynamic userIDs,
- dynamic config,
)
Implementation
Future<Map<dynamic, dynamic>> setRoomMembersAttributes(
Map attributes, String roomID, dynamic userIDs, dynamic config) async {
final _attributes = mapToJSObj(attributes);
final _config = mapToJSObj(config);
final result = await promiseToFuture(ZIM
.getInstance()!
.setRoomMembersAttributes(_attributes, userIDs, roomID, _config))
.catchError((e) {
throw PlatformException(code: e.code.toString(), message: e.message);
});
return jsObjectToMap(result);
}