revokeManager method

  1. @override
Future<bool> revokeManager(
  1. String userId
)

Revoke manager rights from a user.
userId the identify of the user
Return true indicates that the user no longer has manager rights. Otherwise, this function returns false.

Implementation

@override
Future<bool> revokeManager(String userId) async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<bool>('revokeManager', params)
      .then<bool>((bool? value) => value ?? false);
}