makeHost method
Assign a user as the session host.
userId
the identify of the user
Return indicates that the user is now the host. Otherwise, this function returns false.
Implementation
@override
Future<bool> makeHost(String userId) async {
var params = <String, dynamic>{};
params.putIfAbsent("makeHost", () => userId);
return await methodChannel
.invokeMethod<bool>('makeHost', params)
.then<bool>((bool? value) => value ?? false);
}