getIsManager method
Determine whether the user is the manager.
Return true indicates that the user is the manager, otherwise false.
Implementation
Future<bool> getIsManager() async {
var params = <String, dynamic>{};
params.putIfAbsent("userId", () => userId);
return await methodChannel
.invokeMethod<bool>('isManager', params)
.then<bool>((bool? value) => value ?? false);
}