leaveRoom method
Implementation
Future<Map<dynamic, dynamic>> leaveRoom(String roomID) async {
final result = await promiseToFuture(ZIM.getInstance()!.leaveRoom(roomID))
.catchError((e) {
throw PlatformException(code: e.code.toString(), message: e.message);
});
return jsObjectToMap(result);
}