rejectAccess method

Future<Either<ScreenMeetError, bool>> rejectAccess(
  1. FeatureRequest request
)

Reject the access to feature

Implementation

Future<Either<ScreenMeetError, bool>> rejectAccess(FeatureRequest request) async {
  var featureMap = <String, dynamic> {
    _pm.kFeatureRequestorId: request.requestorId,
    _pm.kFeatureRequestorName: request.requestorName,
    _pm.kFeatureType: request.type,
  };

  final Map result = await _channel.invokeMethod(_pm.kFeatureRejectAccessCommand, featureMap);
  if (_pm.isSuccess(result)) { return Right(true);}
  return Left(_pm.error(result));
}