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